From 1ec9c3f67f1596f657bd37ed3d8ffca0533590f2 Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Tue, 3 Mar 2015 18:24:14 +0100 Subject: [PATCH] Fehler in Umwandlung von RefType zu GTV in BoGTV beheben --- .../dhbwstuttgart/syntaxtree/type/BoundedGenericTypeVar.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/de/dhbwstuttgart/syntaxtree/type/BoundedGenericTypeVar.java b/src/de/dhbwstuttgart/syntaxtree/type/BoundedGenericTypeVar.java index 516abdbe..46a043f3 100755 --- a/src/de/dhbwstuttgart/syntaxtree/type/BoundedGenericTypeVar.java +++ b/src/de/dhbwstuttgart/syntaxtree/type/BoundedGenericTypeVar.java @@ -88,14 +88,16 @@ public class BoundedGenericTypeVar extends GenericTypeVar ConstraintsSet ret = super.TYPE(ass); //ass.addGenericVarAssumption(this); //Die Type methode der BoundedGenericTypeVar schreibt zusätzlich noch die Constraints für die bounds + Vector tempBounds = new Vector<>(); if(this.bounds != null){ for(Type ev : this.bounds){ ConstraintType extendsType = ass.getTypeFor(ev, this); if(extendsType == null)throw new TypeinferenceException("Der Typ "+ev.getName()+" ist nicht korrekt", this); - + tempBounds.add(extendsType.getType()); //ret.add(new SingleConstraint(ass.getTypeFor(this, this), extendsType )); } } + this.bounds = tempBounds; return ret; }