From 6b767bc09b98c81817c7f8f6ed79fda8be420de2 Mon Sep 17 00:00:00 2001 From: Victorious3 Date: Tue, 21 Mar 2023 15:06:17 +0100 Subject: [PATCH] Fix using the wrong constructor --- resources/insertGenericsJav/TestAssign.jav | 0 src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 resources/insertGenericsJav/TestAssign.jav diff --git a/resources/insertGenericsJav/TestAssign.jav b/resources/insertGenericsJav/TestAssign.jav new file mode 100644 index 00000000..e69de29b diff --git a/src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java b/src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java index 11f915b4..fc1b0000 100644 --- a/src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java +++ b/src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java @@ -880,7 +880,7 @@ public class JavaTXCompiler { path = new File(outputPath ,sf.getPkgName().replace(".","/")); //add package path to root path } - var converter = new ASTToTargetAST(typeinferenceResult); + var converter = new ASTToTargetAST(typeinferenceResult, sf, classLoader); var generatedClasses = new HashMap(); for (var clazz : sf.getClasses()) { var codegen = new Codegen(converter.convert(clazz));