Browse Source

Fix Expression Visitor using wrong typeParameter list

kindlich 4 years ago
parent
commit
f1fcb91619
No known key found for this signature in database

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

405
 			JavaMethod methodInfo = context.getJavaMethod(expression.member);
405
 			JavaMethod methodInfo = context.getJavaMethod(expression.member);
406
 
406
 
407
 			if(methodInfo.compile) {
407
 			if(methodInfo.compile) {
408
-			    if(expression.member.getHeader().typeParameters.length == expression.arguments.typeArguments.length) {
408
+			    if(typeParameters.size() == expression.arguments.typeArguments.length) {
409
                     final JavaTypeExpressionVisitor javaTypeExpressionVisitor = new JavaTypeExpressionVisitor(context);
409
                     final JavaTypeExpressionVisitor javaTypeExpressionVisitor = new JavaTypeExpressionVisitor(context);
410
                     for(StoredType typeArgument : expression.arguments.typeArguments) {
410
                     for(StoredType typeArgument : expression.arguments.typeArguments) {
411
                         typeArgument.type.accept(javaWriter, javaTypeExpressionVisitor);
411
                         typeArgument.type.accept(javaWriter, javaTypeExpressionVisitor);

Loading…
Cancel
Save