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: java.lang.reflect.Proxy.java


Richard Emberson wrote:

>Well, I tried to use the Proxy.java class and gcj does compile it but it
>dies during execution ...
>and I think the error I am running into is in gcj. Include is a zip file of
>the code and
>here is the gdb session:
>
> b natClass.cc:692
>Breakpoint 5, java::lang::Class::initializeClass() (this=0x8053160)
>    at ../../../gcc/libjava/java/lang/natClass.cc:692
>692               _Jv_PrepareCompiledClass (this);
>Current language:  auto; currently c++
>(gdb) s
>_Jv_PrepareCompiledClass(java::lang::Class*) (klass=0x8053160)
>    at ../../../gcc/libjava/java/lang/natClassLoader.cc:247
>247       if (klass->state >= JV_STATE_LINKED)
>

Try typing

printf "%s\n", klass->name->data

at this point in GDB. Presumably the class that initializeClass() is 
failing on is the proxy that just got created? In any case I suspect its 
probibly a bug elsewhere in the runtime rather than a bug in the compiler.

regards

Bryce.



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