tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard M. Lewis Ship (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (TAP5-1966) Plastic should throw an exception when it attempts to redefine an existing method unexpectedly
Date Tue, 30 Jul 2013 19:27:49 GMT

     [ 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

Mime
View raw message