-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 22
-
Component/s: core-libs
-
b25
-
generic
-
generic
-
Verified
A DESCRIPTION OF THE PROBLEM :
In method ClassRemapperImpl.asCodeTransform() the bootstrap method handle needs to be remapped as well; see fix below:
case InvokeDynamicInstruction idi ->
cob.invokeDynamicInstruction(DynamicCallSiteDesc.of(
// idi.bootstrapMethod(), idi.name().stringValue(),
mapDirectMethodHandle(idi.bootstrapMethod()), idi.name().stringValue(),
mapMethodDesc(idi.typeSymbol()),
idi.bootstrapArgs().stream().map(this::mapConstantValue).toArray(ConstantDesc[]::new)));
In method ClassRemapperImpl.asCodeTransform() the bootstrap method handle needs to be remapped as well; see fix below:
case InvokeDynamicInstruction idi ->
cob.invokeDynamicInstruction(DynamicCallSiteDesc.of(
// idi.bootstrapMethod(), idi.name().stringValue(),
mapDirectMethodHandle(idi.bootstrapMethod()), idi.name().stringValue(),
mapMethodDesc(idi.typeSymbol()),
idi.bootstrapArgs().stream().map(this::mapConstantValue).toArray(ConstantDesc[]::new)));