Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8275199

Bogus warning generated for serializable records

    XMLWordPrintable

Details

    • b07
    • b23
    • generic
    • generic

    Description

      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


      Attachments

        Issue Links

          Activity

            People

              jjg Jonathan Gibbons
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: