L
lyallex
Hi
This has got me stumped
jdk1.5.0_10
I can compile and run the code for RunTests and associated classes at
http://java.sun.com/j2se/1.5.0/docs/guide/language/annotations.html
However the Java 2 Platform Standard Ed. 5.0 javadoc for Method shows
the following signature for invoke
Object invoke(Object obj, Object... args)
The particular bit of the code that is causing me a problem is
....
try {
m.invoke(null);
....
I have looked at the code for Method and there is only one 2 arg method
called invoke. How then am I managing to compile and run the
aforementioned code ... surely the compiler should flag this as a
compile time error. Obviously I'm missing something but I can't see what.
What am I missing ? ...
Thanks in advance
Duncan
This has got me stumped
jdk1.5.0_10
I can compile and run the code for RunTests and associated classes at
http://java.sun.com/j2se/1.5.0/docs/guide/language/annotations.html
However the Java 2 Platform Standard Ed. 5.0 javadoc for Method shows
the following signature for invoke
Object invoke(Object obj, Object... args)
The particular bit of the code that is causing me a problem is
....
try {
m.invoke(null);
....
I have looked at the code for Method and there is only one 2 arg method
called invoke. How then am I managing to compile and run the
aforementioned code ... surely the compiler should flag this as a
compile time error. Obviously I'm missing something but I can't see what.
What am I missing ? ...
Thanks in advance
Duncan