G
Grisha
Hi all,
What is the reason that getMethods() method (in java.lang.Class)
return only
public methods? After all, couldn't it return all methods, and then,
upon
invocation, throw a SecurityException (or IllegalAccessException)?
What
is the rationale for this?
-----
P.S. After reading http://www.yoda.arachsys.com/java/newsgroups.html,
http://mindprod.com/jgloss/newsgroups.html and
http://www.faqs.org/faqs/computer-lang/java/help/minifaq/, I do feel
this cross-post is justified. If there's a more authoritative source,
please point them out to me. Advocacy was chosen because this is a
point
of Sun's choice, and security -- because this is related to access of
methods.
What is the reason that getMethods() method (in java.lang.Class)
return only
public methods? After all, couldn't it return all methods, and then,
upon
invocation, throw a SecurityException (or IllegalAccessException)?
What
is the rationale for this?
-----
P.S. After reading http://www.yoda.arachsys.com/java/newsgroups.html,
http://mindprod.com/jgloss/newsgroups.html and
http://www.faqs.org/faqs/computer-lang/java/help/minifaq/, I do feel
this cross-post is justified. If there's a more authoritative source,
please point them out to me. Advocacy was chosen because this is a
point
of Sun's choice, and security -- because this is related to access of
methods.