DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33461>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33461





------- Additional Comments From [EMAIL PROTECTED]  2005-06-09 13:52 -------
We could indeed test whether the class is public:

   int modifiers = bean.getClass().getModifiers();
   if (!Modifier.isPublic(modifiers)) {
     throw new IllegalAccessException("Cannot describe non-public class");
   }

If the bean's class defines one or more getter methods then we aren't breaking
backwards compatibility, because an exception would have been thrown anyway due
to describe attempting to read that property.

However if the bean doesn't declare any getters and doesn't override any getters
inherited from its superclass then should we refuse to process the object? I've
run some tests, and a method declared on a superclass can still be called as
long as the private subclass doesn't override it.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to