Reflection code
Joerg Brunsmann
Joerg.Brunsmann@FernUni-Hagen.de
Sat Apr 1 00:00:00 GMT 2000
Hi,
FWIW I tested the new reflection support code. As far as I
can report it works fine.
Download
http://www.javaworld.com/javaworld/jw-09-1997/indepth/ReflectClass.java
and compile
$ gcj --main=ReflectClass -o ReflectClass ReflectClass.java
$ ./ReflectClass ReflectClass
Also the code found at
http://www.ddj.com/articles/1998/9801/9801c/9801c.htm
works:
$ gcj -c -o ArgumentHolder.o ArgumentHolder.java
$ gcj -c -o Invoker.o Invoker.java
$ gcj --main=ReflectionDemo -o ReflectionDemo Invoker.o ArgumentHolder.o ReflectionDemo.java
Joerg
More information about the Java
mailing list