Message1574
The problem with this is that since it isn't a part of the javabean spec there's no rule as far as pluralization of the setter name goes. In your StringBean example, I would have named the methods getPods, setPods, and setPod so your patch wouldn't match for single assignments. Naturally, we could extend the patch to handle 'append an s' plurals, but then when my bread management javabean has getLoaves, setLoaves and setLoaf and b.loaves = 'pumpernickel' fails I'll be confused and hungry.
Putting a single item in a list and assigning it to an array javabean works, so I don't think this is too big of a problem. ie
s = StringBean()
s.pods = ['polebean']
does what you'd expect it to.
|
|
Date |
User |
Action |
Args |
2008-02-20 17:17:48 | admin | link | issue1708944 messages |
2008-02-20 17:17:48 | admin | create | |
|