JDK-4422788 : javadoc API: provide access to the value of constant fields
Type:Bug
Component:tools
Sub-Component:javadoc(tool)
Affected Version:1.2.0,1.3.1,1.4.0
Priority:P3
Status:Closed
Resolution:Fixed
OS:linux,solaris_2.5,solaris_7
CPU:generic,x86
Submitted:2001-03-07
Updated:2002-06-27
Resolved:2001-06-22
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
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
14-06-2004
EVALUATION
Yes
11-06-2004
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();
}