From 5de55b02cb75716fb4aba5fdf90e5e4e3f312ef5 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 11 Jul 2005 10:45:27 +0000 Subject: [PATCH] generics: ask for the appropriate TypeX depending on the binding --- .../ajdt/internal/compiler/lookup/EclipseFactory.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java index 9f6c2cc28..65aa041ed 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java @@ -504,7 +504,12 @@ public class EclipseFactory { TypeDeclaration decl = binding.scope.referenceContext; // Deal with the raw/basic type to give us an entry in the world type map - TypeX simpleTx = TypeX.forName(getName(binding)); + TypeX simpleTx = null; + if (binding.isGenericType()) { + simpleTx = TypeX.forRawTypeNames(getName(binding)); + } else { + simpleTx = TypeX.forName(getName(binding)); + } ReferenceType name = getWorld().lookupOrCreateName(simpleTx); EclipseSourceType t = new EclipseSourceType(name, this, binding, decl); -- 2.39.5