You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Joost Schouten (JIRA)" <ji...@apache.org> on 2011/02/06 18:04:30 UTC

[jira] Created: (TAP5-1430) prevent property binding to itself

prevent property binding to itself
----------------------------------

                 Key: TAP5-1430
                 URL: https://issues.apache.org/jira/browse/TAP5-1430
             Project: Tapestry 5
          Issue Type: Bug
    Affects Versions: 5.2.4
            Reporter: Joost Schouten


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 is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TAP5-1430) prevent property binding to itself

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13014303#comment-13014303 ] 

Howard M. Lewis Ship commented on TAP5-1430:
--------------------------------------------

At the very least, accomplishing this would require a change to some public APIs, not to mention the fact that the information needed to detect this is somewhat scattered around the place. Maybe a hacked solution is possible inside the worker for the @Parameter annotation.

> prevent property binding to itself
> ----------------------------------
>
>                 Key: TAP5-1430
>                 URL: https://issues.apache.org/jira/browse/TAP5-1430
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.2.4
>            Reporter: Joost Schouten
>
> 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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (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

Posted by "Howard M. Lewis Ship (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAP5-1430:
---------------------------------------

             Priority: Minor  (was: Major)
    Affects Version/s:     (was: 5.2.4)
                       5.2
                       5.3
              Summary: 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  (was: prevent property binding to itself)
    
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TAP5-1430) prevent property binding to itself

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13014303#comment-13014303 ] 

Howard M. Lewis Ship commented on TAP5-1430:
--------------------------------------------

At the very least, accomplishing this would require a change to some public APIs, not to mention the fact that the information needed to detect this is somewhat scattered around the place. Maybe a hacked solution is possible inside the worker for the @Parameter annotation.

> prevent property binding to itself
> ----------------------------------
>
>                 Key: TAP5-1430
>                 URL: https://issues.apache.org/jira/browse/TAP5-1430
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.2.4
>            Reporter: Joost Schouten
>
> 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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (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

Posted by "Howard M. Lewis Ship (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAP5-1430:
---------------------------------------

             Priority: Minor  (was: Major)
    Affects Version/s:     (was: 5.2.4)
                       5.2
                       5.3
              Summary: 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  (was: prevent property binding to itself)
    
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira