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/09/24 14:27:12 UTC
DO NOT REPLY [Bug 23383] New: -
MappedPropertyDescriptor broken
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=23383>.
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=23383
MappedPropertyDescriptor broken
Summary: MappedPropertyDescriptor broken
Product: Commons
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: Bean Utilities
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: daniel.spilker@hamburg.de
When trying to create a MappedPropertyDescriptor for a mapped property with an
"invalid" setter method, an IntrospectionException is thrown. E.g. I have a
class with the methods:
getProperty(String):Property
setProperty(String, Value):void
Since MappedPropertyDescriptor#findMethod(Class, String, int, Class[]) returns
that "invalid" setter method MappedPropertyDescriptor#findMappedPropertyType
fails. It would be nice for MappedPropertyDescriptor to ignore "invalid" setter
methods.
After some debugging I found that
MappedPropertyDescriptor#internalFindMethod(Class, String, int, Class[]) calls
MappedPropertyDescriptor#internalFindMethod(Class, String, int) for the class'
interfaces. So it misses the parameter which specifies the method's argument
classes. I think the way it's meant to be is to use
MappedPropertyDescriptor#internalFindMethod(Class, String, int, Class[]) for
that call, too.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org