This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Obsolete/incorrect assertion in natVMClassLoader.cc?
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Mon, 27 Apr 2009 14:50:19 +0100
- Subject: Obsolete/incorrect assertion in natVMClassLoader.cc?
Testing --enable-libgcj-debug, I've been running into this assertion:
>
> spawn [open ...]
> libgcj failure: klass->state == JV_STATE_LOADED
> in function defineClass, file
> /gnu/gcc/gcc/libjava/java/lang/natVMClassLoader.cc, line 99
> FAIL: ExtraClassLoader execution - source compiled test
According to an old post on the subject:
http://gcc.gnu.org/ml/java/2005-07/msg00004.html
"The assertion is wrong". Am I right in taking it to mean that after calling
DefineClass, the class state is indeed *supposed* to be JV_STATE_READ (as it
in fact is, having just been processed by _Jv_ClassReader::parse), rather than
JV_STATE_LOADED (which the assertion tests for)?
cheers,
DaveK