assertion with --enable-libgcj-debug

Tom Tromey tromey@redhat.com
Sun Jul 3 17:36:00 GMT 2005


>>>>> "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



More information about the Java mailing list