Obsolete/incorrect assertion in natVMClassLoader.cc?

Dave Korn dave.korn.cygwin@googlemail.com
Mon Apr 27 13:39:00 GMT 2009


  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



More information about the Java-patches mailing list