improve previous patch: make sure we only erase if type is actually parameterized.
(was: missing team anchor).
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/util/AstGenerator.java b/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/util/AstGenerator.java
index 33ce273..802a754 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/util/AstGenerator.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/util/AstGenerator.java
@@ -335,6 +335,7 @@
 		return baseclassReference(type, false);
 	}
 	public TypeReference baseclassReference(TypeBinding type, boolean erase) {
+		erase &= type.isParameterizedType();
 		if (erase)
 			type = type.erasure();
 		TypeReference result = typeReference(type);