You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/06/09 13:52:55 UTC
DO NOT REPLY [Bug 33461] -
[beanutils] 1.6.1 cannot determine reader methods for anonymous class
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 skitching@apache.org 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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org