Menu

#26 JBuffer.getByteArray(byte[]) - throws ArrayIndexOutOfBounds

Version 1.2
closed-fixed
API Issue (77)
5
2009-03-20
2009-03-20
No

JBuffer.getByteArray(byte[]) nearly always throws an ArrayINdexOutOfBounds exception. This is a native method and implementation seems to have a problem.

Discussion

  • Sly Technologies

    The problem was with the "index" parameter. It was used as an index into the supplied byte[] not into the memory buffer. Algorithm is fixed.

     
  • Sly Technologies

    • status: open --> open-fixed
     
  • Sly Technologies

    Fixed in rc6. As a work around, do not use the index parameter and make sure its always 0, even if you have to peer another JBuffer to make the offset/index start with 0.

     
  • Sly Technologies

    • status: open-fixed --> closed-fixed
     

Log in to post a comment.