]> source.dussan.org Git - aspectj.git/commitdiff
test and fix for 168044 - processing complex self referential generic declarations
authoraclement <aclement>
Thu, 11 Jan 2007 10:32:43 +0000 (10:32 +0000)
committeraclement <aclement>
Thu, 11 Jan 2007 10:32:43 +0000 (10:32 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java

index 69f13ce99b0abc213ddfe3d79421b2d1fef61488..0d1bb1baf7b13958d346402209c88a753b794f88 100644 (file)
@@ -260,7 +260,8 @@ public class EclipseFactory {
                        ResolvedType baseType = getWorld().resolve(UnresolvedType.forName(getName(binding)),true);
                        if (!baseType.isMissing()) {
                                // can legitimately be missing if a bound refers to a type we haven't added to the world yet...
-                               if (!baseType.isGenericType() && arguments!=null) baseType = baseType.getGenericType();
+                               // pr168044 - sometimes (whilst resolving types) we are working with 'half finished' types and so (for example) the underlying generic type for a raw type hasnt been set yet                           
+                               //if (!baseType.isGenericType() && arguments!=null) baseType = baseType.getGenericType(); 
                                baseTypeSignature = baseType.getErasureSignature();
                        } else {
                                baseTypeSignature = UnresolvedType.forName(getName(binding)).getSignature();