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 36985] New: - PropertyUtils.getProperty depends on jdk version
Date Mon, 10 Oct 2005 10:15:56 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36985>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36985

           Summary: PropertyUtils.getProperty depends on jdk version
           Product: Commons
           Version: unspecified
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Bean Utilities
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: marco.laporta@tiscalinet.it


When i have a bean with 2 method, 
public String getTestProp1() {...};
public String getTestProp1(int len) {...};

The first property is "hidden" on jdk 1.5 and so PropertyUtils.getProperty
(bean,"testProp1") throws a  "java.lang.NoSuchMethodException: 
Property 'testProp1' has no getter method".

On jdk 1.4.2_04 all works fine.
Im not sure this is a commons.BeanUtils bug, perhaps a jkd bug. The problem is 
java.beans.Introspector.getBeanInfo(Class clazz) but i do not understand what 
is the correct behavior of this method.

I attach a testcase

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
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