mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8339876: Move constant symbol caches to Utf8EntryImpl
Reviewed-by: redestad
This commit is contained in:
parent
0765917dea
commit
4d65c3efca
19 changed files with 87 additions and 113 deletions
|
@ -31,6 +31,7 @@ import java.util.Optional;
|
|||
import java.lang.classfile.constantpool.Utf8Entry;
|
||||
import jdk.internal.classfile.impl.BufferedMethodBuilder;
|
||||
import jdk.internal.classfile.impl.MethodImpl;
|
||||
import jdk.internal.classfile.impl.Util;
|
||||
import jdk.internal.javac.PreviewFeature;
|
||||
|
||||
/**
|
||||
|
@ -59,7 +60,7 @@ public sealed interface MethodModel
|
|||
|
||||
/** {@return the method descriptor of this method, as a symbolic descriptor} */
|
||||
default MethodTypeDesc methodTypeSymbol() {
|
||||
return MethodTypeDesc.ofDescriptor(methodType().stringValue());
|
||||
return Util.methodTypeSymbol(methodType());
|
||||
}
|
||||
|
||||
/** {@return the body of this method, if there is one} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue