Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4498879
Votes 0
Synopsis javadoc fails to parse assert statements correctly.
Category doclet:tbd
Reported Against merlin-beta2
Release Fixed
State 11-Closed, duplicate of 4492054, bug
Priority: 3-Medium
Related Bugs 4492054
Submit Date 31-AUG-2001
Description




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


Run the following command on the source provided:

% javadoc -source 1.4 Test.java

Here's Test.java:

/**
 *  test class.
 **/
public class Test {
    /**
     *  test method.
     **/
    public static void main(String[] args) {
	assert args.length == 0;
    }
}

Here's the result:

Loading source file Test.java...
Test.java:9: ';' expected
	assert args.length == 0;
		   ^
1 error
1 warning

Note that the following command works as expected.

% javac -source 1.4 Test.java
(Review ID: 131163) 
======================================================================
Work Around




None known.
======================================================================
Evaluation
N/A
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang