8339683: Simplify class data generation in InvokerBytecodeGenerator

Reviewed-by: redestad
This commit is contained in:
Chen Liang 2024-09-09 15:15:16 +00:00
parent 7c0f013d92
commit a9bb04331d
2 changed files with 38 additions and 61 deletions

View file

@ -563,7 +563,7 @@ class GenerateJLIClassesHelper {
.withSuperclass(InvokerBytecodeGenerator.INVOKER_SUPER_DESC)
.with(SourceFileAttribute.of(className.substring(className.lastIndexOf('/') + 1)));
for (int i = 0; i < forms.length; i++) {
new InvokerBytecodeGenerator(className, names[i], forms[i], forms[i].methodType()).addMethod(clb);
new InvokerBytecodeGenerator(className, names[i], forms[i], forms[i].methodType()).addMethod(clb, false);
}
});
}