JDK-4638316 : List final static variables (constants) separately from other variables
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Won't Fix
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2002-02-15
  • Updated: 2024-04-12
  • Resolved: 2018-01-18
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) 
======================================================================

Comments
We could do something similar to Method tabs we did for JDK 8.
07-12-2015

Update the Field summary similar to what we did for Method Summary and group it according to types.
23-01-2014

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: dragon
14-06-2004

EVALUATION Should be decided in conjunction with other requests to give users more flexibility in viewing the output, as spelled out in the umbrella RFE 4656982. ###@###.### 2002-03-22
22-03-2002