This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: assertion with --enable-libgcj-debug
- From: Tom Tromey <tromey at redhat dot com>
- To: Anthony Green <green at redhat dot com>
- Cc: java at gcc dot gnu dot org
- Date: 03 Jul 2005 11:31:13 -0600
- Subject: Re: assertion with --enable-libgcj-debug
- References: <1120374400.3057.6.camel@localhost.localdomain>
- Reply-to: tromey at redhat dot com
>>>>> "Anthony" == Anthony Green <green@redhat.com> writes:
Anthony> I wanted to poke at Azureus again, so I built a 4.0 branch
Anthony> toolchain with --enable-libgcj-debug. I had to apply the
Anthony> following hack in order for libgcj to compile cleanly, since
Anthony> we have some assertions that try to read non-public fields.
If these are in jni.cc, they were fixed on the trunk by this patch:
2005-06-13 Jim Huang <jserv@kaffe.org>
PR libgcj/22036:
* jni.cc (_Jv_JNI_NewObjectV): Use chars() method.
(_Jv_JNI_NewObject): Likewise.
Feel free to put this in 4.0 if you like, once it reopens.
Anthony> Once I had build everything, I found that every time I tried to run
Anthony> interpreted code I got:
Anthony> libgcj failure: klass->state == JV_STATE_LOADED
Anthony> in function defineClass, file ../../../gcc/libjava/java/lang/natVMClassLoader.cc, line 106
Anthony> Aborted
Anthony> Is the assertion wrong, or our code?
The assertion is wrong.
Tom