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 2003/08/17 00:55:22 UTC
DO NOT REPLY [Bug 21431] -
Wrong PropertyDescriptor found
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21431>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21431
Wrong PropertyDescriptor found
craig.mcclanahan@sun.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
------- Additional Comments From craig.mcclanahan@sun.com 2003-08-16 22:55 -------
The reason this happens is that java.beans.Introspector follows a "BeanInfo
search path" in order to locate any BeanInfo class that corresponds to a bean,
before examining the bean class itself. The default BeanInfo search path
includes a package that defines BeanInfo for a class called Component, so this
BeanInfo is used for any user class that is also named Component.
It would be unreasonable for commons-beanutils to make any changes in the
BeanInfo search path that has been set. Therefore, you shoud work around this
issue by calling Introspector.setBeanInfoSearchPath() with a list of packages
that does not include the standard one (I'd suggest using a zero-length String
array so that *no* searching is done), before calling any BeanUtils methods.
See the Javadocs for java.beans.Introspector, and the JavaBeans spec, for more
information.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org