Merge branch 'addPackages' of ssh://gohorb.ba-horb.de/bahome/projekt/git/JavaCompilerCore into addPackages

This commit is contained in:
JanUlrich 2019-12-30 19:20:46 +01:00
commit 2e421cccaa
3 changed files with 6 additions and 6 deletions

View File

@ -70,7 +70,7 @@ public class ASTFactory {
} }
private static Field createField(java.lang.reflect.Field field, JavaClassName jreClass) { private static Field createField(java.lang.reflect.Field field, JavaClassName jreClass) {
return new Field(field.getName(), createType(field.getType()), field.getModifiers(), new NullToken()); return new Field(field.getName(), createType(field.getGenericType()), field.getModifiers(), new NullToken());
} }
//private static RefType createType(Class classType) { //private static RefType createType(Class classType) {

View File

@ -8,9 +8,9 @@ import de.test.mathStruc;
import de.test.vectorAdd; import de.test.vectorAdd;
class mathStrucVector { public class mathStrucVector {
main() { public main() {
Vector<Integer> v1 = new Vector<Integer>(); Vector<Integer> v1 = new Vector<Integer>();
v1.addElement(2); v1.addElement(2);
v1.addElement(2); v1.addElement(2);
@ -25,9 +25,9 @@ class mathStrucVector {
var ms2; var ms2;
ms2 = new mathStruc<>(v2); ms2 = new mathStruc<>(v2);
var ms3; var ms3;
/*
ms3 = ms.innerOp.apply(va.add).apply(ms2); ms3 = ms.innerOp.apply(va.add).apply(ms2);
return ms3; return ms3;
*/
} }
} }

View File

@ -5,7 +5,7 @@ import java.lang.Integer;
import java.lang.Boolean; import java.lang.Boolean;
class vectorAdd { public class vectorAdd {
public add = (v1, v2) -> { public add = (v1, v2) -> {
var ret = new Vector<Integer>(); var ret = new Vector<Integer>();