11/*
2- * Copyright (c) 1994, 2020 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 1994, 2021 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
@@ -4387,13 +4387,6 @@ public Optional<ClassDesc> describeConstable() {
43874387 public native boolean isHidden ();
43884388
43894389 /**
4390- * {@preview Associated with sealed classes, a preview feature of the Java language.
4391- *
4392- * This method is associated with <i>sealed classes</i>, a preview
4393- * feature of the Java language. Preview features
4394- * may be removed in a future release, or upgraded to permanent
4395- * features of the Java language.}
4396- *
43974390 * Returns an array containing {@code Class} objects representing the
43984391 * direct subinterfaces or subclasses permitted to extend or
43994392 * implement this class or interface if it is sealed. The order of such elements
@@ -4429,7 +4422,7 @@ public Optional<ClassDesc> describeConstable() {
44294422 * @jls 9.1 Interface Declarations
44304423 * @since 15
44314424 */
4432- @ jdk .internal .PreviewFeature (feature =jdk .internal .PreviewFeature .Feature .SEALED_CLASSES , essentialAPI = false )
4425+ @ jdk .internal .javac . PreviewFeature (feature =jdk .internal .javac . PreviewFeature .Feature .SEALED_CLASSES , reflective = true )
44334426 @ CallerSensitive
44344427 public Class <?>[] getPermittedSubclasses () {
44354428 Class <?>[] subClasses ;
@@ -4469,13 +4462,6 @@ private boolean isDirectSubType(Class<?> c) {
44694462 }
44704463
44714464 /**
4472- * {@preview Associated with sealed classes, a preview feature of the Java language.
4473- *
4474- * This method is associated with <i>sealed classes</i>, a preview
4475- * feature of the Java language. Preview features
4476- * may be removed in a future release, or upgraded to permanent
4477- * features of the Java language.}
4478- *
44794465 * Returns {@code true} if and only if this {@code Class} object represents
44804466 * a sealed class or interface. If this {@code Class} object represents a
44814467 * primitive type, {@code void}, or an array type, this method returns
@@ -4489,7 +4475,7 @@ private boolean isDirectSubType(Class<?> c) {
44894475 * @jls 9.1 Interface Declarations
44904476 * @since 15
44914477 */
4492- @ jdk .internal .PreviewFeature (feature =jdk .internal .PreviewFeature .Feature .SEALED_CLASSES , essentialAPI = false )
4478+ @ jdk .internal .javac . PreviewFeature (feature =jdk .internal .javac . PreviewFeature .Feature .SEALED_CLASSES , reflective = true )
44934479 @ SuppressWarnings ("preview" )
44944480 public boolean isSealed () {
44954481 if (isArray () || isPrimitive ()) {
0 commit comments