[prev in list] [next in list] [prev in thread] [next in thread]
List: jakarta-commons-dev
Subject: [jira] Updated: (BEANUTILS-273) Public methods overriden in
From: "Marcelo Liberato (JIRA)" <jira () apache ! org>
Date: 2007-03-30 21:07:25
Message-ID: 21343574.1175288845466.JavaMail.jira () brutus
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/BEANUTILS-273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]
Marcelo Liberato updated BEANUTILS-273:
---------------------------------------
Attachment: anonymous-subclass-override-patch.txt
The proposed patch adjust MethodUtils.getAccessibleMethodFromInterfaceNest to check \
for implementation method on superclass chain, besides interfaces from superclass \
chain.
Some code refactored out on this method too.
> Public methods overriden in anonymous or private subclasses are not recognized by \
> PropertyUtils
> -----------------------------------------------------------------------------------------------
>
> Key: BEANUTILS-273
> URL: https://issues.apache.org/jira/browse/BEANUTILS-273
> Project: Commons BeanUtils
> Issue Type: Bug
> Components: Bean / Property Utils
> Reporter: Marcelo Liberato
> Fix For: 1.8.0
>
> Attachments: anonymous-subclass-override-patch.txt
>
>
> When you do something like:
> TestBean anonymous = new TestBean() {
> public String getStringProperty() {
> return "foo";
> }
> };
> PropertyUtils.getProperty(anonymous, "stringProperty");
> PropertyUtils fails as:
> java.lang.NoSuchMethodException: Property 'stringProperty' has no getter method in \
> class 'class org.apache.commons.beanutils.PropertyUtilsTestCase$1'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic