commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <j...@apache.org>
Subject [jira] Updated: (BEANUTILS-163) [beanutils] MappedPropertyDescriptor broken
Date Mon, 06 Nov 2006 06:07:42 GMT
     [ http://issues.apache.org/jira/browse/BEANUTILS-163?page=all ]

Niall Pemberton updated BEANUTILS-163:
--------------------------------------

    Bugzilla Id:   (was: 23383)
    Component/s: Bean / Property Utils

> [beanutils] MappedPropertyDescriptor broken
> -------------------------------------------
>
>                 Key: BEANUTILS-163
>                 URL: http://issues.apache.org/jira/browse/BEANUTILS-163
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Bean / Property Utils
>         Environment: Operating System: All
> Platform: All
>            Reporter: Daniel Spilker
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message