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 32653] - [beanutils] Beans and Maps mixed up in PropertyUtils
Date Mon, 13 Dec 2004 01:06:27 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=32653>.
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=32653





------- Additional Comments From dakota.jack@gmail.com  2004-12-13 02:06 -------
No, I am not proposing changing the order.  I don't know why that would break
previous uses and would be interested to know.  Apparently you are thinking of
classes that are both a Map and an ActionForm and are currently used as a Map? 
That seems very *unusual* to me.  I am just proposing to improve beanutils, if
possible.  There could be many, many solutions without breaking backward
compatibility.  I don't know why you seem to begin with thinking it is not
possible.  I cannot see your thought process here.  If we, for example, went from:

  if(bean instanceof DynaBean) {
     // use DynaBean get/set methods
  } else if (bean instanceof Map) {
     // use Map get/put methods
  } else {
     // treat as JavaBean and use introspection to 
     // acquire the property getter and setter methods
  }

to:

  if(bean instanceof SomeInterface) {
     // treat as JavaBean and use introspection to 
     // acquire the property getter and setter methods
  } else if(bean instanceof DynaBean) {
     // use DynaBean get/set methods
  } else if (bean instanceof Map) {
     // use Map get/put methods
  } else {
     // treat as JavaBean and use introspection to 
     // acquire the property getter and setter methods
  }

I have no problem with scratching my own itches.  I can look into solutions as
long as the problem is not tossed as impossible.  There should be a number to
propose to the committers.

I have also used the property solution in the past.  I need the class to be a
Map to do what I want to do.  I am looking forward to when the ActionForm is
freed from its present bondage, which I understand you support as well.  

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