You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2014/08/01 20:41:39 UTC

[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

     [ 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)