import java.lang.reflect.Method;
public class Main {
public static void main(String[] args) {
for (Method method : Main.class.getDeclaredMethods()) {
if (method.isAccessible()) {
System.out.println(method.getName());
}
}
}
}
I would expect it to print "main" since there is one public method named "main" in class Main. Isn't that what isAccessible does?
John
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden