re PR libgcj/36252 (OutOfMemoryError on simple text conversion.)
authorDavid Daney <ddaney@avtrex.com>
Wed, 21 May 2008 03:49:03 +0000 (03:49 +0000)
committerDavid Daney <daney@gcc.gnu.org>
Wed, 21 May 2008 03:49:03 +0000 (03:49 +0000)
commit32723ea0f97141dcc859af08906a52c7ddcc7278
treee6e58a2d11b2eb0a13884ca5f7d7d4db1b0158ca
parent57b6cfda36af9a9e0743b9599c766d559eb0304d
re PR libgcj/36252 (OutOfMemoryError on simple text conversion.)

2008-05-20  David Daney  <ddaney@avtrex.com>

PR libgcj/36252
* java/lang/natString.ccn: Add
#include <java/io/CharConversionException.h>.
(init (byte[], int, int, String)): Catch and ignore
CharConversionException.  Break out of conversion loop
on incomplete input.
* testsuite/libjava.lang/PR36252.java: New test.
* testsuite/libjava.lang/PR36252.out: New file, its expected output.
* testsuite/libjava.lang/PR36252.jar: New file, its pre-compiled
jar file.

From-SVN: r135705
libjava/ChangeLog
libjava/java/lang/natString.cc
libjava/testsuite/libjava.lang/PR36252.jar [new file with mode: 0644]
libjava/testsuite/libjava.lang/PR36252.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/PR36252.out [new file with mode: 0644]