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 2005/10/10 12:15:56 UTC
DO NOT REPLY [Bug 36985] New: -
PropertyUtils.getProperty depends on jdk version
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