From edda41f5464643e79ecaaff0435befa341554284 Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Tue, 3 May 2016 22:43:43 +0200 Subject: [PATCH] Generic Type Var werden zu PlaceholderTypen konvertiert --- src/de/dhbwstuttgart/bytecode/ClassGenerator.java | 4 ---- src/de/dhbwstuttgart/syntaxtree/factory/UnifyTypeFactory.java | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/de/dhbwstuttgart/bytecode/ClassGenerator.java b/src/de/dhbwstuttgart/bytecode/ClassGenerator.java index decb0f8b..e9ef10e3 100644 --- a/src/de/dhbwstuttgart/bytecode/ClassGenerator.java +++ b/src/de/dhbwstuttgart/bytecode/ClassGenerator.java @@ -181,8 +181,4 @@ public class ClassGenerator extends ClassGen{ super.addMethod(m); } - - - - } diff --git a/src/de/dhbwstuttgart/syntaxtree/factory/UnifyTypeFactory.java b/src/de/dhbwstuttgart/syntaxtree/factory/UnifyTypeFactory.java index cc5170bb..0ab687e6 100644 --- a/src/de/dhbwstuttgart/syntaxtree/factory/UnifyTypeFactory.java +++ b/src/de/dhbwstuttgart/syntaxtree/factory/UnifyTypeFactory.java @@ -125,8 +125,8 @@ public class UnifyTypeFactory { } public static UnifyType convert(GenericTypeVar t){ - //return new PlaceholderType(t.get_Name()); - return new ReferenceType(t.get_Name()); + return new PlaceholderType(TypePlaceholder.fresh(NULL_NODE).get_Name()); + //return new ReferenceType(t.get_Name()); } public static UnifyConstraintsSet convert(ConstraintsSet constraints) {