new file: resources/AllgemeinTest/Twice2.jav

modified:   src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java
	modified:   src/test/java/AllgemeinTest.java
This commit is contained in:
pl@gohorb.ba-horb.de 2023-07-13 15:25:34 +02:00
parent bdaf578f86
commit a0e6df7cfd
3 changed files with 15 additions and 2 deletions

View File

@ -0,0 +1,12 @@
class Twice2 {
id1inst = new Id<>();
id1 = id1inst.id;
id2inst = new Id<>();
id2 = id2inst.id;
twice = id1.apply(id2);
}
class Id<T> {
id = (T x) -> x;
}

View File

@ -70,7 +70,7 @@ public class JavaTXCompiler {
final CompilationEnvironment environment;
Boolean resultmodel = false;
public final Map<File, SourceFile> 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;

View File

@ -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";