StringIndexOutOfBoundsException in PeopleCodeParser
Decodes PeopleCode bytecode and submits the code to SVN or Git
Status: Beta
Brought to you by:
erikh3
Got a java.lang.StringIndexOutOfBoundsException out of class PeopleCodeParser.java:261. This issue appears to be with Chinese characters in the actual peoplecode. I've attached three files, one is the actual source and the other two are from decode in debug mode. From I can tell the comment_length gets set to 21333 just before the new String at line 261 throws the exception. The container.bytes.length is 5014 at that point.
I'm running on SVN trunk 103.
Sorry I didn't find this sooner, not sure if this was a result of the fix for ticket #21
Could you please attached the actual bytecode from PSPCMPROG (perhaps as byte array, or hex-encoded)?
Attached is the bytecode from PSPCMPROG.
Here is a zip file with .class files for a potential fix. You know the routine...
That seemed to do the trick. It ran without exception and the pcode file matches the source code.