]> source.dussan.org Git - aspectj.git/commitdiff
generics: ask for the appropriate TypeX depending on the binding
authoraclement <aclement>
Mon, 11 Jul 2005 10:45:27 +0000 (10:45 +0000)
committeraclement <aclement>
Mon, 11 Jul 2005 10:45:27 +0000 (10:45 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java

index 9f6c2cc28bb5c577aba689404cbee1ab57d9860b..65aa041edf471cadc18ad57dc5e0e846dca4b570 100644 (file)
@@ -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);