Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1668

JavaDoc for @Parameter.value() should be clearer about the empty string

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2
    • Fix Version/s: 5.4
    • Component/s: None
    • Labels:
      None

      Description

      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?

        Attachments

          Activity

            People

            • Assignee:
              hlship Howard M. Lewis Ship
              Reporter:
              geoffcallender Geoff Callender
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: