United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4422788 : javadoc API: provide access to the value of constant fields

Details
Type:
Bug
Submit Date:
2001-03-07
Status:
Closed
Updated Date:
2002-06-27
Project Name:
JDK
Resolved Date:
2001-06-22
Component:
tools
OS:
solaris_2.5,solaris_7,linux
Sub-Component:
javadoc(tool)
CPU:
x86,generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
1.2.0,1.3.1,1.4.0
Fixed Versions:
1.4.0 (beta2)

Related Reports
Duplicate:
Duplicate:

Sub Tasks

Description
Please add to the javadoc API to allow access to the value of
constant fields.

                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
merlin-beta2

FIXED IN:
merlin-beta2

INTEGRATED IN:
merlin-beta2

VERIFIED IN:
merlin-beta3


                                     
2004-06-14
EVALUATION

Yes
                                     
2004-06-11
PUBLIC COMMENTS

FieldDoc extended as follows:

public interface FieldDoc extends MemberDoc {

...

    /**
     * Get the value of a constant field.
     *
     * @return the value of a constant field. The value is
     * automatically wrapped in an object if it has a primitive type.
     * If the field is not constant, returns null.
     */
    Object constantValue();

    /**
     * Get the value of a constant field.
     *
     * @return the text of 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.
     */
    String constantValueExpression();
}
                                     
2004-06-10



Hardware and Software, Engineered to Work Together