瀏覽代碼

Fixed Bridge methods invoking in the incorrect class

kindlich 5 年之前
父節點
當前提交
191a9a8d4b
沒有發現已知的金鑰在資料庫的簽署中

+ 1
- 1
JavaBytecodeCompiler/src/main/java/org/openzen/zenscript/javabytecode/compiler/JavaExpressionVisitor.java 查看文件

@@ -1912,7 +1912,7 @@ public class JavaExpressionVisitor implements ExpressionVisitor<Void>, JavaNativ
1912 1912
 				bridgeWriter.checkCast(type);
1913 1913
 			}
1914 1914
 			
1915
-			bridgeWriter.invokeVirtual(methodInfo);
1915
+			bridgeWriter.invokeVirtual(new JavaMethod(JavaClass.fromInternalName(className, JavaClass.Kind.CLASS), methodInfo.kind, methodInfo.name, methodInfo.compile, signature, methodInfo.modifiers, methodInfo.genericResult));
1916 1916
 			if(expression.header.getReturnType().type != BasicTypeID.VOID) {
1917 1917
 				bridgeWriter.returnType(context.getType(expression.header.getReturnType()));
1918 1918
 			}

Loading…
取消
儲存