< prev index next >

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

Print this page

        

*** 26,35 **** --- 26,36 ---- import java.lang.invoke.MethodHandle; import java.lang.invoke.MethodHandles; import java.lang.invoke.MethodType; import java.util.Objects; + import java.util.Optional; import static java.lang.constant.ConstantDescs.CD_void; import static java.lang.constant.ConstantUtils.validateClassOrInterface; import static java.lang.constant.ConstantUtils.validateMemberName; import static java.lang.constant.DirectMethodHandleDesc.Kind.CONSTRUCTOR;
*** 215,220 **** --- 216,226 ---- @Override public String toString() { return String.format("MethodHandleDesc[%s/%s::%s%s]", kind, owner.displayName(), name, invocationType.displayDescriptor()); } + + @Override + public Optional<? extends ConstantDesc> describeConstable() { + return null; + } }
< prev index next >