From 9dca8ccdaa36c7499fa98f8fc7af95b78592047a Mon Sep 17 00:00:00 2001 From: Victorious3 Date: Tue, 24 Jan 2023 12:27:30 +0100 Subject: [PATCH] Fix parameter types in super call --- .../target/generate/StatementToTargetExpression.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/dhbwstuttgart/target/generate/StatementToTargetExpression.java b/src/main/java/de/dhbwstuttgart/target/generate/StatementToTargetExpression.java index a1ed570e6..2f809f41f 100644 --- a/src/main/java/de/dhbwstuttgart/target/generate/StatementToTargetExpression.java +++ b/src/main/java/de/dhbwstuttgart/target/generate/StatementToTargetExpression.java @@ -306,8 +306,8 @@ public class StatementToTargetExpression implements StatementVisitor { public void visit(SuperCall superCall) { var aSuper = converter.convert(converter.currentClass.getSuperClass()); var type = converter.convert(superCall.getType()); - var parameters = superCall.signature.stream().map(converter::convert).toList(); - parameters = parameters.subList(0, parameters.size() - 1); + var parameters = superCall.arglist.getArguments().stream().map(par -> converter.convert(par.getType())).toList(); + result = new TargetMethodCall( type, type, parameters,