Unexpected behaviour setting default of String parameter to "" 
---------------------------------------------------------------

                 Key: TAP5-1668
                 URL: https://issues.apache.org/jira/browse/TAP5-1668
             Project: Tapestry 5
          Issue Type: Bug
    Affects Versions: 5.2.6
            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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to