Skip to content

Commit 6503b31

Browse files
committed
Fix wrong object type being used in IndyHelpers
Signed-off-by: TheSilkMiner <[email protected]>
1 parent 3e2d1b8 commit 6503b31

File tree

1 file changed

+2
-2
lines changed
  • JavaBytecodeCompiler/src/main/java/org/openzen/zenscript/javabytecode/compiler/indy

1 file changed

+2
-2
lines changed

JavaBytecodeCompiler/src/main/java/org/openzen/zenscript/javabytecode/compiler/indy/IndyHelpers.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ private static Type toBsmArgType(final Object object) {
132132
if (realObject instanceof Handle) {
133133
return METHOD_HANDLE_TYPE;
134134
}
135-
if (realObject instanceof JavaCondy) {
136-
return Type.getType(((JavaCondy) realObject).asConstantDynamic().getDescriptor());
135+
if (realObject instanceof ConstantDynamic) {
136+
return Type.getType(((ConstantDynamic) realObject).getDescriptor());
137137
}
138138
throw new IllegalArgumentException("Unrecognized or incompatible indy construct " + realObject.getClass().getName());
139139
}

0 commit comments

Comments
 (0)