-
Type:
Bug
-
Resolution: Not an Issue
-
Priority:
P3
-
None
-
Affects Version/s: 15, 17, 18
-
Component/s: tools
-
b27
-
generic
-
generic
A DESCRIPTION OF THE PROBLEM :
A class that implements java.io.Serializable receives warnings from javadoc if the private fields are uncommented.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run javadoc for the program below (simply "javadoc Test.java")
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
No warnings
ACTUAL -
Test.java:5: warning: no comment
private final int i = 1;
---------- BEGIN SOURCE ----------
/**
* Comment.
*/
public class Test implements java.io.Serializable {
private final int i = 1;
}
---------- END SOURCE ----------
FREQUENCY : always
A class that implements java.io.Serializable receives warnings from javadoc if the private fields are uncommented.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run javadoc for the program below (simply "javadoc Test.java")
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
No warnings
ACTUAL -
Test.java:5: warning: no comment
private final int i = 1;
---------- BEGIN SOURCE ----------
/**
* Comment.
*/
public class Test implements java.io.Serializable {
private final int i = 1;
}
---------- END SOURCE ----------
FREQUENCY : always
- relates to
-
JDK-8275199 Bogus warning generated for serializable records
-
- Resolved
-