------- Comment #2 from tromey at gcc dot gnu dot org 2009-02-13 17:54 ------- This line looks fishy:
+ boffset = cbuf->position(); boffset is a byte offset from the start of 'data' to the first character. So, you probably need to multiply by sizeof(jchar) and also add in the size of the array header. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39180