From a0e6df7cfd8cf294081d76dafd4447f73f8092f9 Mon Sep 17 00:00:00 2001 From: "pl@gohorb.ba-horb.de" Date: Thu, 13 Jul 2023 15:25:34 +0200 Subject: [PATCH] new file: resources/AllgemeinTest/Twice2.jav modified: src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java modified: src/test/java/AllgemeinTest.java --- resources/AllgemeinTest/Twice2.jav | 12 ++++++++++++ .../java/de/dhbwstuttgart/core/JavaTXCompiler.java | 2 +- src/test/java/AllgemeinTest.java | 3 ++- 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 resources/AllgemeinTest/Twice2.jav 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";