forked from JavaTX/JavaCompilerCore
modified: src/test/java/targetast/TestCodegen.java
modified: src/test/java/targetast/TestGenerics.java
This commit is contained in:
parent
96ffc12ebc
commit
41d76533c0
@ -42,7 +42,7 @@ public class TestCodegen {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Map<String, ? extends Class<?>> generateClassFiles(String filename, IByteArrayClassLoader classLoader) throws IOException, ClassNotFoundException {
|
public static Map<String, ? extends Class<?>> generateClassFiles(String filename, IByteArrayClassLoader classLoader) throws IOException, ClassNotFoundException {
|
||||||
var file = Path.of(System.getProperty("user.dir"), "/src/test/resources/bytecode/javFiles/", filename).toFile();
|
var file = Path.of(System.getProperty("user.dir"), "/resources/bytecode/javFiles/", filename).toFile();
|
||||||
var compiler = new JavaTXCompiler(List.of(file), List.of(file.getParentFile()));
|
var compiler = new JavaTXCompiler(List.of(file), List.of(file.getParentFile()));
|
||||||
var resultSet = compiler.typeInference();
|
var resultSet = compiler.typeInference();
|
||||||
var sourceFile = compiler.sourceFiles.get(file);
|
var sourceFile = compiler.sourceFiles.get(file);
|
||||||
|
@ -22,7 +22,7 @@ import java.util.List;
|
|||||||
|
|
||||||
public class TestGenerics {
|
public class TestGenerics {
|
||||||
|
|
||||||
private static final String rootDirectory = System.getProperty("user.dir") + "/src/test/resources/insertGenericsJav/";
|
private static final String rootDirectory = System.getProperty("user.dir") + "/resources/insertGenericsJav/";
|
||||||
private static final String bytecodeDirectory = System.getProperty("user.dir") + "/src/test/resources/testBytecode/generatedBC/";
|
private static final String bytecodeDirectory = System.getProperty("user.dir") + "/src/test/resources/testBytecode/generatedBC/";
|
||||||
|
|
||||||
private record Result(List<GenericsResult> genericsResults, ClassOrInterface clazz) {
|
private record Result(List<GenericsResult> genericsResults, ClassOrInterface clazz) {
|
||||||
|
Loading…
Reference in New Issue
Block a user