tapestry-dev 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] [Closed] (TAP5-1430) Tapestry should detect when a parameter is bound to itself (as a property, as the default for the parameter) as this will cause an endless loop when the property is read or updated
Date Fri, 01 Aug 2014 18:41:39 GMT

     [ https://issues.apache.org/jira/browse/TAP5-1430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Howard M. Lewis Ship closed TAP5-1430.
--------------------------------------

    Resolution: Won't Fix

Given that this is a bit of an edge case, I don't think we have the resources to fix this.
 I would consider apply a valid patch that includes tests.

> Tapestry should detect when a parameter is bound to itself (as a property, as the default
for the parameter) as this will cause an endless loop when the property is read or updated
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1430
>                 URL: https://issues.apache.org/jira/browse/TAP5-1430
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3, 5.2
>            Reporter: Joost Schouten
>            Priority: Minor
>
> It is currently possible to bind a property to itself like so:
> @Property
> @Parameter(value="actionZone")
> private String actionZone;
> This causes a StackOverflowError where it should just assign the default literal value
"actionZone" to the property actionZone. Or it should complain and throw an Exception informing
the developer that you cannot bind in this way without specifying the prefix literal:



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message