[
https://issues.apache.org/jira/browse/TAP5-1966?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Howard M. Lewis Ship updated TAP5-1966:
---------------------------------------
Component/s: (was: tapestry-core)
(was: tapestry-ioc)
plastic
> Plastic should throw an exception when it attempts to redefine an existing
> method unexpectedly
> ----------------------------------------------------------------------------------------------
>
> Key: TAP5-1966
> URL: https://issues.apache.org/jira/browse/TAP5-1966
> Project: Tapestry 5
> Issue Type: Improvement
> Components: plastic
> Affects Versions: 5.3.3
> Reporter: Andrei Arapov
> Labels: property
>
> For example, we have page class; page shows "select" component on
> corresponsing page :
> public class FooPage {
> ...
> // now let's define Property "organizations"
> @Property
> private List<Organization> organizations;
> // we create method for getting SelectModel class for "select" component
> public SelectModel getOrganizations() {
> ... blablabla
> }
> ...
> }
> And on page:
> ...
> <t:select t:id="organization" model="getOrganizations"
> value="user.organization" encoder="getValueEncoder()"/>
> ...
> Ok. What's happen now? The behaivour of this situation is not defined.
> Tapestry can invoke "SelectModel getOrganizations()" or "List<Organization>
> getOrganizations()" in arbitrary order (it is clear why).
> It would be good, if Plastic throws an exception, when it redefines getter
> which already exists.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira