This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: assertion with --enable-libgcj-debug


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]