#19 Ability to have overloading get() set() methods

closed
None
5
2005-12-09
2005-12-07
No

have a class with 2 set methods
public void setDate(Date date) {...}
public void setDate(custom) {...}

Implementation of FieldMap.findAMethod(Class
parentDestClass, String methodName) takes the lat
method with the provided name. Consequently in my case
it takes public void setDate(custom) {...} wich is not
the good one for the mapping.

It would be nice if it was possible to specifiy the
methodName with parameter in the style:
<B theGetMethod="getDate"
theSetMethod="setDate(java.util.Date)">date</B>
It should support old style without param to keep
backaward compatibility and new style with param to be
able to choose used method.

Discussion

  • Franz Garsombke

    Franz Garsombke - 2005-12-07
    • status: open --> pending
     
  • Franz Garsombke

    Franz Garsombke - 2005-12-07

    Logged In: YES
    user_id=550744

    Checked into v15 branch. Will be released w/ 1.5.8.1

     
  • Franz Garsombke

    Franz Garsombke - 2005-12-09
    • status: pending --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks