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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.2
    • 5.4
    • None
    • 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

            hlship Howard Lewis Ship
            geoffcallender Geoff Callender
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: