diff --git a/src/de/dhbwstuttgart/parser/SyntaxTreeGenerator.java b/src/de/dhbwstuttgart/parser/SyntaxTreeGenerator.java index c6995fa2..c9c0f140 100644 --- a/src/de/dhbwstuttgart/parser/SyntaxTreeGenerator.java +++ b/src/de/dhbwstuttgart/parser/SyntaxTreeGenerator.java @@ -132,7 +132,8 @@ public class SyntaxTreeGenerator{ String typeName = convertTypeName(ctx.typeName()); String packageName = getPackageFromClass(typeName); List classes = PackageCrawler.getClassNames(packageName); - JavaClassName ret = new JavaClassName(typeName); + reg.add(typeName); + JavaClassName ret = reg.getName(typeName); if(classes.contains(ret)){ return ret; }