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

(enum) Serialized Form javadoc for java.lang.Enum is misleading

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P3
    • Resolution: Approved
    • Fix Version/s: 12
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Compatibility Risk:
      minimal
    • Interface Kind:
      Java API
    • Scope:
      SE

      Description

      Summary

      The abstract class java.lang.Enum should be excluded from the serialized form page since enum types have special handling in serialization.

      Problem

      It is misleading to include java.lang.Enum in the serialized form page because enum types have special handling in serialization.

      Solution

      Add "@serial exclude" to the class-level javadoc of java.lang.Enum.

      Specification

      The serialized form page omits any listing for java.lang.Enum.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                darcy Joe Darcy
                Reporter:
                gyisunw Gyi Gyi (Inactive)
                Reviewed By:
                Lance Andersen, Roger Riggs, Stuart Marks
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: