forked from JavaTX/JavaCompilerCore
new file: ../../AllgemeinTest/VectorNotObject.jav
new file: ../../AllgemeinTest/WildcardCaptureConversionTest.jav modified: ../../../src/test/java/AllgemeinTest.java
This commit is contained in:
parent
d1fd65fad7
commit
8dfce15850
9
resources/AllgemeinTest/VectorNotObject.jav
Normal file
9
resources/AllgemeinTest/VectorNotObject.jav
Normal file
@ -0,0 +1,9 @@
|
||||
import java.util.Vector;
|
||||
|
||||
class VectorNotObject {
|
||||
|
||||
vectorAddAll(v1, v2) {
|
||||
v1.addAll(v2);
|
||||
return v1;
|
||||
}
|
||||
}
|
16
resources/AllgemeinTest/WildcardCaptureConversionTest.jav
Normal file
16
resources/AllgemeinTest/WildcardCaptureConversionTest.jav
Normal file
@ -0,0 +1,16 @@
|
||||
import java.util.Vector;
|
||||
import java.lang.Integer;
|
||||
import java.lang.String;
|
||||
|
||||
class WildcardCaptureConversionTest {
|
||||
|
||||
m(x, y ,z) {
|
||||
x = new Vector<Integer>();
|
||||
y = new Vector<String>();
|
||||
x.add(1);
|
||||
y.add("2");
|
||||
//Integer i = x.elementAt(0);
|
||||
//String s = y.elementAt(0);
|
||||
return z.vectorAddAll(x, y);
|
||||
}
|
||||
}
|
@ -48,7 +48,9 @@ public class AllgemeinTest {
|
||||
//String className = "Box";
|
||||
//String className = "Box_Main";
|
||||
//String className = "wildcardPair";
|
||||
String className = "VectorConstAdd";
|
||||
//String className = "VectorConstAdd";
|
||||
String className = "VectorNotObject";
|
||||
//String className = "WildcardCaptureConversionTest";
|
||||
//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";
|
||||
|
Loading…
Reference in New Issue
Block a user