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

fix the javadoc for Class::isSealed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 16
    • None
    • tools

      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}.

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

              Created:
              Updated:
              Resolved: