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

Non-static final fields in class are documented on constants page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 24
    • 5.0
    • tools
    • Fix Understood
    • generic
    • generic

      I notice the standard doclet lists both of these on the constants page:

      public class Class1 {
          public static final String STATIC_FINAL_FIELD = "Hi";
          public final String nonStaticFinalField = "Hi";
      }

      Isn't it a bug that a final non-static field is included?

      The fields on this page are selected by FieldDoc.constantValue()

      http://java.sun.com/j2se/1.5.0/docs/guide/javadoc/doclet/spec/com/sun/javadoc/FieldDoc.html#constantValue()
      ###@###.### 2005-05-26 01:39:36 GMT

            nbenalla Nizar Benalla
            dkramersunw Douglas Kramer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: