-
Bug
-
Resolution: Fixed
-
P3
-
15.0.2, 17, 18
-
b07
-
b23
-
generic
-
generic
A DESCRIPTION OF THE PROBLEM :
When a record implements an interface, javadoc issues bogus warnings.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run javadoc for the class below (simply "javadoc Point.java")
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
No warnings.
ACTUAL -
Two warnings:
Point.java:7: warning: no comment
public record Point(double x, double y) implements java.io.Serializable {
^
Point.java:7: warning: no comment
public record Point(double x, double y) implements java.io.Serializable {
---------- BEGIN SOURCE ----------
/**
* Comment.
*
* @param x comment
* @param y comment
*/
public record Point(double x, double y) implements java.io.Serializable {
}
---------- END SOURCE ----------
FREQUENCY : always
When a record implements an interface, javadoc issues bogus warnings.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run javadoc for the class below (simply "javadoc Point.java")
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
No warnings.
ACTUAL -
Two warnings:
Point.java:7: warning: no comment
public record Point(double x, double y) implements java.io.Serializable {
^
Point.java:7: warning: no comment
public record Point(double x, double y) implements java.io.Serializable {
---------- BEGIN SOURCE ----------
/**
* Comment.
*
* @param x comment
* @param y comment
*/
public record Point(double x, double y) implements java.io.Serializable {
}
---------- END SOURCE ----------
FREQUENCY : always
- relates to
-
JDK-8275192 Bogus warning generated for private fields if class implements Serializable
-
- Closed
-
-
JDK-8275784 Bogus warning generated for record with compact constructor
-
- Resolved
-