From 41d8e223cec09fed237936a7e0d8d91da2698e57 Mon Sep 17 00:00:00 2001 From: luca9913 Date: Mon, 26 Jun 2023 20:24:59 +0200 Subject: [PATCH] Fixed wrong resources path in TestCodegen --- src/test/java/targetast/TestCodegen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/targetast/TestCodegen.java b/src/test/java/targetast/TestCodegen.java index b1389f6e..09b6a490 100644 --- a/src/test/java/targetast/TestCodegen.java +++ b/src/test/java/targetast/TestCodegen.java @@ -37,7 +37,7 @@ public class TestCodegen { } public static Map> 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();