mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8338543: ClassBuilder withMethod builders should cache the method type symbol
Reviewed-by: asotona
This commit is contained in:
parent
55851a312b
commit
68d1f5c33b
3 changed files with 19 additions and 4 deletions
|
@ -276,10 +276,7 @@ public sealed interface ClassBuilder
|
|||
MethodTypeDesc descriptor,
|
||||
int methodFlags,
|
||||
Consumer<? super CodeBuilder> handler) {
|
||||
return withMethodBody(constantPool().utf8Entry(name),
|
||||
constantPool().utf8Entry(descriptor),
|
||||
methodFlags,
|
||||
handler);
|
||||
return withMethod(name, descriptor, methodFlags, mb -> mb.withCode(handler));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue