Menu

#22 StringIndexOutOfBoundsException in PeopleCodeParser

v1.0 (example)
open
Erik H
None
5
2019-04-22
2019-04-11
Kenneth C
No

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

3 Attachments

Discussion

  • Erik H

    Erik H - 2019-04-15

    Could you please attached the actual bytecode from PSPCMPROG (perhaps as byte array, or hex-encoded)?

     
  • Erik H

    Erik H - 2019-04-20

    Here is a zip file with .class files for a potential fix. You know the routine...

     
  • Kenneth C

    Kenneth C - 2019-04-22

    That seemed to do the trick. It ran without exception and the pcode file matches the source code.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.