commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21431] - Wrong PropertyDescriptor found
Date Sat, 16 Aug 2003 22:55:22 GMT
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.

Mime
View raw message