< prev index next >

src/java.base/share/classes/java/lang/constant/ReferenceClassDescImpl.java

Print this page

        

@@ -24,10 +24,14 @@
  */
 package java.lang.constant;
 
 import java.lang.invoke.MethodHandles;
 
+import java.lang.invoke.MethodHandles;
+import java.util.Optional;
+
+import static java.lang.constant.ConstantDescs.BSM_INVOKE;
 import static java.lang.constant.ConstantUtils.dropFirstAndLastChar;
 import static java.lang.constant.ConstantUtils.internalToBinary;
 import static java.util.Objects.requireNonNull;
 
 /**

@@ -106,6 +110,11 @@
 
     @Override
     public String toString() {
         return String.format("ClassDesc[%s]", displayName());
     }
+
+    @Override
+    public Optional<? extends ConstantDesc> describeConstable() {
+        return Optional.empty();
+    }
 }
< prev index next >