diff --git a/resources/AllgemeinTest/Twice2.jav b/resources/AllgemeinTest/Twice2.jav new file mode 100644 index 00000000..87a3f239 --- /dev/null +++ b/resources/AllgemeinTest/Twice2.jav @@ -0,0 +1,12 @@ +class Twice2 { + id1inst = new Id<>(); + id1 = id1inst.id; + id2inst = new Id<>(); + id2 = id2inst.id; + twice = id1.apply(id2); + +} + +class Id { + id = (T x) -> x; +} \ No newline at end of file diff --git a/src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java b/src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java index 04537c2c..1bcd7068 100644 --- a/src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java +++ b/src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java @@ -70,7 +70,7 @@ public class JavaTXCompiler { final CompilationEnvironment environment; Boolean resultmodel = false; public final Map sourceFiles = new HashMap<>(); - Boolean log = false; //gibt an ob ein Log-File nach System.getProperty("user.dir")+""/logFiles/"" geschrieben werden soll? + Boolean log = true; //gibt an ob ein Log-File nach System.getProperty("user.dir")+""/logFiles/"" geschrieben werden soll? public volatile UnifyTaskModel usedTasks = new UnifyTaskModel(); private final DirectoryClassLoader classLoader; diff --git a/src/test/java/AllgemeinTest.java b/src/test/java/AllgemeinTest.java index 60ef6659..46520d61 100644 --- a/src/test/java/AllgemeinTest.java +++ b/src/test/java/AllgemeinTest.java @@ -41,6 +41,7 @@ public class AllgemeinTest { //String className = "Var"; //String className = "Put"; //String className = "Twice"; + String className = "Twice2"; //String className = "TestSubTypless"; //String className = "addList"; //String className = "M"; @@ -56,7 +57,7 @@ public class AllgemeinTest { //String className = "UseWildcardPair"; //String className = "Assign"; //String className = "StreamTest"; - String className = "Iteration"; + //String className = "Iteration"; //PL 2019-10-24: genutzt fuer unterschiedliche Tests path = System.getProperty("user.dir")+"/resources/AllgemeinTest/" + className + ".jav"; //path = System.getProperty("user.dir")+"/src/test/resources/AllgemeinTest/Overloading_Generics.jav";