java.lang.reflect.Proxy.java

Bryce McKinlay bryce@waitaki.otago.ac.nz
Wed Dec 5 00:31:00 GMT 2001


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.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /