Message1574

Author cgroves
Recipients
Date 2007-05-06.06:56:37
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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.
History
Date User Action Args
2008-02-20 17:17:48adminlinkissue1708944 messages
2008-02-20 17:17:48admincreate