United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4587494 : Constant field values for boolean Data-Types don't use true and false

Details
Type:
Bug
Submit Date:
2001-12-10
Status:
Closed
Updated Date:
2002-06-27
Project Name:
JDK
Resolved Date:
2002-03-08
Component:
tools
OS:
generic
Sub-Component:
javadoc(tool)
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.0
Fixed Versions:
1.4.1 (hopper)

Related Reports

Sub Tasks

Description

Name: rmT116609			Date: 12/10/2001


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

When doing a javadoc on a file like the following:

-- Test.java --
public class Test
{
  public static final boolean TRUE_VALUE=true;
  public static final boolean FALSE_VALUE=false;
}
-- Test.java --

using the default doclet with a simple "javadoc Test.java". The file constant-values.html 
shows 0 and 1 as the values of the fields TRUE_VALUE and FALSE_VALUE.

According to the Java Language Specification the Bolean Literal values are

BooleanLiteral: one of  true false
(Review ID: 137056) 
======================================================================

                                    

Comments
EVALUATION

Definitely a bug.

###@###.### 2001-12-10
                                     
2001-12-10
PUBLIC COMMENTS

The new methods in the javadoc API for accessing the value of constant fields
did not return correct results for booleans.  Instead of returning the correct
boolean value, they returned "0" for false and "1" for true.  Javadoc now
correctly returns the value of boolean constants.
                                     
2004-06-10
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
hopper

FIXED IN:
hopper

INTEGRATED IN:
hopper

VERIFIED IN:
hopper-beta


                                     
2004-06-14



Hardware and Software, Engineered to Work Together