Reflection and gcj
Anand Krishnaswamy
anandkr@nortelnetworks.com
Tue Dec 7 15:04:00 GMT 1999
Title: Reflection and gcj
Hi:
I need to use reflection for some purpose and it appears that gcj does not have implementation for a few methods. I get the following error message at run-time and the program aborts.
libgcj failure: java::lang::Class::getMethod not implemented.
In fact, I was unable to directly compile from the .java level as gcj kept complaining that it had not implemented anonymous arrays.
DRU.java:66: sorry, not implemented: : `anonymous array' JDK1.1(TM) feature
1 error
I had to create the bytecode and then convert it to an object file before linking it in with gcj. The linking had no problem from this point on and I was able to create the executable. The run-time problem listed above occured during this time.I tried another method in class Class, getDeclaredMethod , and I get the same error.
Can anyone help me here? Do I need to upgrade the gcj version? The following is the gcj version information.
[anandkr@crchy0n9 loading]$ gcj -v
Reading specs from /opt/lib/gcc-lib/powerpc-unknown-linux-gnu/2.95.1/specs
Reading specs from /opt/lib/libgcj.spec
rename spec lib to liborig
gcc version 2.95.1 19990816 (release)
Regards
Anand
Anand Krishnaswamy
Wireless Solutions, e-mobility HLR
Phone: (972) 684-7414 or ESN 444-7414
FaxÃÂ ÃÂ ÃÂ : (972) 684-3739 or ESN 444-3739
E-mail : anandkr@nortelnetworks.com
More information about the Java
mailing list