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 37535] - beanutils 1.7.1 and properties with different types and the same name
Date Wed, 16 Nov 2005 23:18:52 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=37535>.
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=37535


niallp@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From niallp@apache.org  2005-11-17 00:18 -------
This breaks the JavaBean spec. For an indexed property you need to have method 
signatures along the following lines:

  public String[] getMyProperty()
  public void setMyProperty(String[] values)
  public String getMyProperty(int index)
  public void setMyProperty(int index, String value)

For example, if you have a *simple* property that doesn't return an array, then 
java doesn't consider there is a "read method", just an "indexed read method" - 
the property descriptor returned by java introspection returns an 
IndexedPropertyDescriptor with just that (i.e no read method) - and the same 
holds for write as well.

This isn't a beanutils issue, so I'm closing this as INVALID.

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