Browse Source

Fixed Bridge methods invoking in the incorrect class

kindlich 5 years ago
parent
commit
191a9a8d4b
No known key found for this signature in database

+ 1
- 1
JavaBytecodeCompiler/src/main/java/org/openzen/zenscript/javabytecode/compiler/JavaExpressionVisitor.java View File

1912
 				bridgeWriter.checkCast(type);
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
 			if(expression.header.getReturnType().type != BasicTypeID.VOID) {
1916
 			if(expression.header.getReturnType().type != BasicTypeID.VOID) {
1917
 				bridgeWriter.returnType(context.getType(expression.header.getReturnType()));
1917
 				bridgeWriter.returnType(context.getType(expression.header.getReturnType()));
1918
 			}
1918
 			}

Loading…
Cancel
Save