< prev index next >

src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedObjectType.java

Print this page
rev 51666 : [mq]: 8210434

@@ -108,8 +108,23 @@
     HotSpotResolvedObjectType getEnclosingType();
 
     @Override
     ResolvedJavaMethod getClassInitializer();
 
+    /**
+     * Checks whether this type is an unsafe anonymous class.
+     *
+     * @return {@code true} if this type is an unsafe anonymous class
+     */
     boolean isUnsafeAnonymous();
 
+    /**
+     * Checks whether this type is an unsafe anonymous class.
+     * This method is here to maintain compatibility with JDK11.
+     *
+     * @return {@code true} if this type is an unsafe anonymous class
+     */
+    default boolean isAnonymous() {
+      return isUnsafeAnonymous();
+    }
+
 }
< prev index next >