[Bug libgcj/35979] JNI method NewStringUTF crashes when passed a NULL pointer

2008-04-19 Thread thomas dot g dot girard at free dot fr
--- Comment #3 from thomas dot g dot girard at free dot fr 2008-04-19 20:54 --- You are absolutely right, thanks for pointing this out. The SIGSEGV gets converted to an NPE. But Sun's implementation does not throw an NPE. Please have a look at the attached testcase. You can launch it u

[Bug libgcj/35979] JNI method NewStringUTF crashes when passed a NULL pointer

2008-04-19 Thread thomas dot g dot girard at free dot fr
--- Comment #2 from thomas dot g dot girard at free dot fr 2008-04-19 20:51 --- Created an attachment (id=15497) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15497&action=view) testcase for NewStringUTF -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35979

[Bug libgcj/35979] JNI method NewStringUTF crashes when passed a NULL pointer

2008-04-19 Thread tromey at gcc dot gnu dot org
--- Comment #1 from tromey at gcc dot gnu dot org 2008-04-19 19:55 --- >From your comment I assume that java-gnome is using the JNI NewStringUTF call. This does not directly call _Jv_NewStringUTF. Instead, it calls _Jv_JNI_NewStringUTF (in jni.cc). That code wraps the call to _Jv_NewSt