]> source.dussan.org Git - aspectj.git/commitdiff
PERFORMANCE: use forSignature() and not forName()
authoraclement <aclement>
Mon, 23 Jun 2008 02:09:10 +0000 (02:09 +0000)
committeraclement <aclement>
Mon, 23 Jun 2008 02:09:10 +0000 (02:09 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java

index 272f14c80217870daa772aba0d1cf3907f70728d..8733a2404ab1dc13e8d10373ae9cbd431342d98c 100644 (file)
@@ -317,8 +317,11 @@ public class EclipseFactory {
                        }
                }
                
-               return UnresolvedType.forName(getName(binding));
+               // was: UnresolvedType.forName(getName(binding));
+               UnresolvedType ut = UnresolvedType.forSignature(new String(binding.signature()));
+               return ut;
        }
+       
 
        /**
         * Some type variables refer to themselves recursively, this enables us to avoid