Fixed wrong resources path in TestCodegen

This commit is contained in:
luca9913 2023-06-26 20:24:59 +02:00
parent eaeb3c4106
commit 41d8e223ce

View File

@ -37,7 +37,7 @@ public class TestCodegen {
}
public static Map<String, ? extends Class<?>> generateClassFiles(IByteArrayClassLoader classLoader, String... files) throws IOException, ClassNotFoundException {
var path = Path.of(System.getProperty("user.dir"), "/resources/bytecode/javFiles/");
var path = Path.of(System.getProperty("user.dir"), "src/test/resources/javFiles/");
var filenames = Arrays.stream(files).map(filename -> Path.of(path.toString(), filename).toFile()).toList();
var compiler = new JavaTXCompiler(filenames, List.of(path.toFile(), outputPath.toFile()));
var resultSet = compiler.typeInference();