commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcelo Liberato (JIRA)" <j...@apache.org>
Subject [jira] Created: (BEANUTILS-273) Public methods overriden in anonymous or private subclasses are not recognized by PropertyUtils
Date Fri, 30 Mar 2007 21:05:25 GMT
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


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


Mime
View raw message