This is the mail archive of the java-patches@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]

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


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