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

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

    Summary: JavaDoc for @Parameter.value() should be clearer about the empty 
string  (was: Unexpected behaviour setting default of String parameter to "" )
    
> JavaDoc for @Parameter.value() should be clearer about the empty string
> -----------------------------------------------------------------------
>
>                 Key: TAP5-1668
>                 URL: https://issues.apache.org/jira/browse/TAP5-1668
>             Project: Tapestry 5
>          Issue Type: Bug
>    Affects Versions: 5.2
>            Reporter: Geoff Callender
>            Priority: Minor
>
> After reading the Parameter javadoc I expected these 3 to be equivalent.
>       @Parameter
>       private String tab;
>       @Parameter(value = "")
>       private String tab;
>       @Parameter
>       private String tab = "";
> but they are not: if the parameter is not bound, then in the first two its 
> value will be null, and in the third one it will be "".
> The javadoc is 
> http://tapestry.apache.org/tapestry5.2-dev/apidocs/org/apache/tapestry5/annotations/Parameter.html
>  .
> Is the behaviour wrong or does the javadoc need to be clearer?

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

Reply via email to