forked from JavaTX/JavaCompilerCore
Fehlende Umwandlung von RefType zu GTV in Wildcard-Types implementieren
This commit is contained in:
parent
0674de12c6
commit
618847bf4f
@ -4,8 +4,10 @@ import java.util.Vector;
|
||||
|
||||
import de.dhbwstuttgart.parser.JavaClassName;
|
||||
import de.dhbwstuttgart.syntaxtree.SyntaxTreeNode;
|
||||
import de.dhbwstuttgart.typeinference.ConstraintType;
|
||||
import de.dhbwstuttgart.typeinference.JavaCodeResult;
|
||||
import de.dhbwstuttgart.typeinference.ResultSet;
|
||||
import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
|
||||
|
||||
|
||||
/**
|
||||
@ -148,4 +150,9 @@ public class ExtendsWildcardType extends WildcardType implements ITypeContainer,
|
||||
this.extendsType.parserPostProcessing(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ConstraintType TYPE(TypeAssumptions ass, SyntaxTreeNode parent) {
|
||||
this.extendsType = this.extendsType.TYPE(ass, parent).getType();
|
||||
return super.TYPE(ass, parent);
|
||||
}
|
||||
}
|
||||
|
@ -3,8 +3,10 @@ package de.dhbwstuttgart.syntaxtree.type;
|
||||
import java.util.Vector;
|
||||
|
||||
import de.dhbwstuttgart.syntaxtree.SyntaxTreeNode;
|
||||
import de.dhbwstuttgart.typeinference.ConstraintType;
|
||||
import de.dhbwstuttgart.typeinference.JavaCodeResult;
|
||||
import de.dhbwstuttgart.typeinference.ResultSet;
|
||||
import de.dhbwstuttgart.typeinference.assumptions.TypeAssumptions;
|
||||
|
||||
/**
|
||||
* Stellt eine Wildcard mit unterer Grenze dar.
|
||||
@ -144,4 +146,12 @@ public class SuperWildcardType extends WildcardType implements ITypeContainer, I
|
||||
super.parserPostProcessing(parent);
|
||||
this.superType.parserPostProcessing(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ConstraintType TYPE(TypeAssumptions ass, SyntaxTreeNode parent) {
|
||||
this.superType = this.superType.TYPE(ass, parent).getType();
|
||||
return super.TYPE(ass, parent);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user