Fix using the wrong constructor

This commit is contained in:
Victorious3 2023-03-21 15:06:17 +01:00
parent 2dff7909ed
commit 6b767bc09b
2 changed files with 1 additions and 1 deletions

View File

@ -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<JavaClassName, byte[]>();
for (var clazz : sf.getClasses()) {
var codegen = new Codegen(converter.convert(clazz));