-
Bug
-
Resolution: Fixed
-
P4
-
1.3.0, 1.4.0
-
beta3
-
generic, x86, sparc
-
generic, linux, solaris_2.6
-
Verified
javadoc generates a warning like this:
javadoc: warning - Method test.Foo.Bar.foo
declares that it throws java.lang.ClassNotFoundException,
but does not document it.
even though the javadoc that's actually generated for the method does contain documentation for the exception, copied directly from a supertype. No warning should be generated in this case.
Consider this simple example:
package test;
public class Foo {
/**
* Does foo.
*
* @throws ClassNotFoundException on a whim
*/
public void foo() throws ClassNotFoundException {}
public static class Bar extends Foo {
public void foo() throws ClassNotFoundException {}
}
}
javadoc: warning - Method test.Foo.Bar.foo
declares that it throws java.lang.ClassNotFoundException,
but does not document it.
even though the javadoc that's actually generated for the method does contain documentation for the exception, copied directly from a supertype. No warning should be generated in this case.
Consider this simple example:
package test;
public class Foo {
/**
* Does foo.
*
* @throws ClassNotFoundException on a whim
*/
public void foo() throws ClassNotFoundException {}
public static class Bar extends Foo {
public void foo() throws ClassNotFoundException {}
}
}
- duplicates
-
JDK-4464876 stddoclet?: javadoc warnings regression (in 1.4 beta)
-
- Closed
-
-
JDK-4492380 False warning: x declares that it throws exception but does not document it
-
- Closed
-