|
Quick Lists
|
|
Bug ID:
|
4422788
|
|
Votes
|
0
|
|
Synopsis
|
javadoc API: provide access to the value of constant fields
|
|
Category
|
java:javadoctool
|
|
Reported Against
|
1.3.1
, 1.2beta4
, merlin-beta
|
|
Release Fixed
|
1.4(merlin-beta2)
|
|
State
|
10-Fix Delivered,
Verified,
bug
|
|
Priority:
|
3-Medium
|
|
Related Bugs
|
4147326
,
4621498
|
|
Submit Date
|
07-MAR-2001
|
|
Description
|
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();
}Please add to the javadoc API to allow access to the value of
constant fields.
|
|
Work Around
|
N/A
|
|
Evaluation
|
Yes
|
|
Comments
|
Submitted On 26-NOV-2001
jhazen
This does not work for public static final values in
interfaces. Please make it work for interfaces as well as
classes.
Submitted On 21-APR-2002
yksk21
hoge
Submitted On 24-MAY-2002
vegardsk
If a string starts with "<" or "</" and/or ends with ">" the constant field value is not displayed. For example:
public final static String TEST = "<test>";
is displayed as "".
Same problem for IE6.0 and Opera 6.2.
Please fix this!
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |