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

List final static variables (constants) separately from other variables

    XMLWordPrintable

Details

    Description



      Name: rmT116609 Date: 02/14/2002


      java version "1.4.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
      Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)


      FULL OPERATING SYSTEM VERSION :
      Windows NT Version 4.0

      DESCRIPTION OF THE PROBLEM :

      It would be nice if the "Field Summary" section of the generated HTML was split into two sections, one for constants (static final variables) called "Constant Field Summary", and the other called "Field Summary" for the remaining member variables.

      This is similar to the way that constructors and other methods are currently listed in separate sections.

      Related bugs: 4485326, 4113311, 4113722

      ---------- BEGIN SOURCE ----------
      // Run 'javadoc -protected' on this

      public class Foo
      {
          public static final int MAX = 1000; // Constant

          protected static int s_count;

          protected int m_size;

          public Foo() // Constructor
          {
              s_count++;
          }

          public int getSize() // Non-ctor method
          {
              return m_size;
          }
      }

      ---------- END SOURCE ----------
      (Review ID: 139710)
      ======================================================================

      Attachments

        Activity

          People

            bpatel Bhavesh Patel (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: