United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4843578 REGRESSION: Javadoc fails on internal class - javac doesnt
JDK-4843578 : REGRESSION: Javadoc fails on internal class - javac doesnt

Details
Type:
Bug
Submit Date:
2003-04-07
Status:
Resolved
Updated Date:
2003-08-26
Project Name:
JDK
Resolved Date:
2003-04-14
Component:
tools
OS:
linux
Sub-Component:
javadoc(tool)
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
1.4.2
Fixed Versions:
1.4.2 (b20)

Related Reports
Backport:

Sub Tasks

Description

Name: rmT116609			Date: 04/06/2003


FULL PRODUCT VERSION :
> /usr/j2sdk1.4.2/bin/javadoc -J-version
java version "1.4.2-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b19)
Java HotSpot(TM) Client VM (build 1.4.2-beta-b19, mixed mode)
> /usr/j2sdk1.4.2/bin/javac -J-version
java version "1.4.2-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b19)
Java HotSpot(TM) Client VM (build 1.4.2-beta-b19, mixed mode)


FULL OS VERSION :
Linux delenn 2.4.4-64GB-SMP #1 SMP Fri May 18 14:54:08 GMT 2001 i686 unknown
(Distribution: SuSE linux 7.2)

A DESCRIPTION OF THE PROBLEM :
javac compiles a source fine. javadoc complains about missing constructor in base class. It shouldn't all is fine with source. 1.4.1 javadoc doesn't complain.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
javac ClassB.java (no errors)
javadoc ClassB.java (1 error)

EXPECTED VERSUS ACTUAL BEHAVIOR :
Same as 1.4.1 - no errors

ERROR MESSAGES/STACK TRACES THAT OCCUR :
ClassB.java:12: ClassA(java.lang.String) in ClassA cannot be applied to ()
        public ClassB(String string) {
                                     ^

Full output from javadoc:

Loading source file ClassB.java...
Constructing Javadoc information...
Standard Doclet version 1.4.2-beta
Generating constant-values.html...
ClassB.java:12: ClassA(java.lang.String) in ClassA cannot be applied to ()
        public ClassB(String string) {
                                     ^
Building tree for all the packages and classes...
Building index for all the packages and classes...
Generating overview-tree.html...
Generating index-all.html...
Generating deprecated-list.html...
Building index for all classes...
Generating allclasses-frame.html...
Generating allclasses-noframe.html...
Generating index.html...
Generating packages.html...
Generating ClassB.html...
Generating ClassB.InnerClassBa.html...
Generating package-list...
Generating help-doc.html...
Generating stylesheet.css...
1 error


REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
// I've shaved this down from an example that actually makes sense.
// It reproduces the problem, but does not make any sense by itself.
// I can provide a larger example that makes sense.
// But this one does fail - same as larger example.

class ClassA {
	ClassA(String member) {}
}

public class ClassB extends ClassA {
	public static class InnerClassBa {
		public static final InnerClassBa instance = new InnerClassBa() {
				public void m() {
				}
			};
	}
	public ClassB(String string) {
		super("");
	}
}

---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
None known - I'm abandoning 1.4.2-beta

Release Regression From : 1.4.1
The above release value was the last known release where this 
bug was known to work. Since then there has been a regression.

(Review ID: 183609) 
======================================================================

                                    

Comments
EVALUATION

This is an unintentional side effect of the fix for 4673913.

###@###.### 2003-04-07

--

The most conservative fix is to back out the 4673913 fix in Mantis.
Can try again in a subsequent release -- see 4845310: "Reduce javadoc memory
requirements (again)".

###@###.### 2003-04-08



Name: dk30142			Date: 04/09/2003



======================================================================
                                     
2003-04-08
PUBLIC COMMENTS

-
                                     
2004-06-10
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mantis-rc
tiger

FIXED IN:
mantis-rc
tiger

INTEGRATED IN:
mantis-b20
mantis-rc
tiger
tiger-b18


                                     
2004-06-14



Hardware and Software, Engineered to Work Together