Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4950825

Clarify FieldDoc.constantValue() doc comments

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.4.2
    • tools

      It wasn't clear on first reading that constantValue() and
      constantValueExpression() are two representions of the same value.
      Suggested text for the returns clause is as follows:

      constantValue
         * @returns an object containing the value of a constant field. (For a
         * string representation, use {@link #constantValueExpression}.)
         * The value is automatically wrapped in an object if it has a
         * primitive type. If the field is not constant, returns null.

      constantValueExpression
         * @returns a string containing the value of a constant field. (For an
         * object representation, use {@link #constantValue}.)
         * The text of the string is a Java language expression whose
         * value is the value of the constant. The expression uses no
         * identifiers other than primitive literals. If the field is
         * not constant, returns null.

      (This request was originally part of bug 4947357)

            Unassigned Unassigned
            dkramersunw Douglas Kramer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: