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

Bogus warning generated for private fields if class implements Serializable

XMLWordPrintable

    • b27
    • 15
    • 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


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: