Skip to content

Commit

Permalink
Fix wrong object type being used in IndyHelpers
Browse files Browse the repository at this point in the history
Signed-off-by: TheSilkMiner <[email protected]>
  • Loading branch information
TheSilkMiner committed Feb 28, 2025
1 parent 0758f0f commit f153fc5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ private static Type toBsmArgType(final Object object) {
if (realObject instanceof Handle) {
return METHOD_HANDLE_TYPE;
}
if (realObject instanceof JavaCondy) {
return Type.getType(((JavaCondy) realObject).asConstantDynamic().getDescriptor());
if (realObject instanceof ConstantDynamic) {
return Type.getType(((ConstantDynamic) realObject).getDescriptor());
}
throw new IllegalArgumentException("Unrecognized or incompatible indy construct " + realObject.getClass().getName());
}
Expand Down

0 comments on commit f153fc5

Please sign in to comment.