< prev index next >

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

Print this page

        

@@ -23,10 +23,11 @@
  * questions.
  */
 package java.lang.constant;
 
 import java.lang.invoke.MethodHandles;
+import java.util.Optional;
 
 import sun.invoke.util.Wrapper;
 
 import static java.util.Objects.requireNonNull;
 

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