Fehler in ASTFactory beheben. GenericRefType statt RefType in den Parameterlisten

This commit is contained in:
JanUlrich 2018-01-29 17:35:49 +01:00
parent 0610ea8e63
commit ede55d228e

View File

@ -48,7 +48,7 @@ public class ASTFactory {
if(superjreClass != null){
List<RefTypeOrTPHOrWildcardOrGeneric> params = new ArrayList<>();
for(TypeVariable tv : superjreClass.getTypeParameters()){
params.add(new RefType(new GenericTypeName(new GenericContext( name, null),tv.getName()), new NullToken()));
params.add(new GenericRefType(new GenericTypeName(new GenericContext( name, null),tv.getName()), new NullToken()));
}
superClass = new RefType(new JavaClassName(superjreClass.getName()), params, new NullToken());
}else{//Jede Klasse und jedes Interface erbt von Object: (auch Object selbst!)