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

fix the javadoc for Class::isSealed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 16
    • Component/s: tools
    • Labels:

      Description

      current text:

          /**
           * * {@preview Associated with sealed classes, a preview feature of the Java language.
           *
           * This method is associated with <i>sealed classes</i>, a preview
           * feature of the Java language. Preview features
           * may be removed in a future release, or upgraded to permanent
           * features of the Java language.}
           *
           * Returns {@code true} if and only if this {@code Class} object represents a sealed class or interface.
           * If this {@code Class} object represents a primitive type, {@code void}, or an array type, this method returns
           * {@code false}.
           *
           * @return {@code true} if and only if this {@code Class} object represents a sealed class or interface.

      there is an additional `*` in front of @preview but also consider:
           ...
           * Returns {@code true} if and only if this {@code Class} object represents a sealed class or interface.
           * If this {@code Class} object represents a primitive type, {@code void}, or an array type, this method returns
       - * {@code false}.
      + * {@code false}. This method has no relationship to {@link Package#isSealed() Package::isSealed}.

        Attachments

          Activity

            People

            Assignee:
            vromero Vicente Arturo Romero Zaldivar
            Reporter:
            vromero Vicente Arturo Romero Zaldivar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: