DO NOT REPLY [Bug 37535] - beanutils 1.7.1 and properties with different types and the same name

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

DO NOT REPLY [Bug 37535] - beanutils 1.7.1 and properties with different types and the same name

Bugzilla from bugzilla@apache.org
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


[hidden email] changed:

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




------- Additional Comments From [hidden email]  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: [hidden email]
For additional commands, e-mail: [hidden email]