JDK-4843578 : REGRESSION: Javadoc fails on internal class - javac doesnt
  • Type: Bug
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Affected Version: 1.4.2
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2003-04-07
  • Updated: 2003-08-26
  • Resolved: 2003-04-14
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.

To download the current JDK release, click here.
Other
1.4.2 b20Fixed
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
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
14-06-2004

PUBLIC COMMENTS -
10-06-2004

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 ======================================================================
08-04-2003