diff options
author | aclement <aclement> | 2005-08-12 10:58:37 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-08-12 10:58:37 +0000 |
commit | 1ac97b7692fe627eecfe987d31e1bb418487c3c9 (patch) | |
tree | 4699144de2a6ad0e047617300d8b2199e4ede942 /org.aspectj.ajdt.core | |
parent | 329a179ced983545db124b4eb92984e0c8d79a07 (diff) | |
download | aspectj-1ac97b7692fe627eecfe987d31e1bb418487c3c9.tar.gz aspectj-1ac97b7692fe627eecfe987d31e1bb418487c3c9.zip |
genericitds: dont lookup those type variables ...
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | 10 |
1 files changed, 8 insertions, 2 deletions
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 5c803b132..9acd8324c 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 @@ -451,11 +451,17 @@ public class EclipseFactory { } public TypeBinding makeTypeBinding(UnresolvedType typeX) { - TypeBinding ret = (TypeBinding)typexToBinding.get(typeX); + + TypeBinding ret = null; + + // looking up type variables can get us into trouble + if (!typeX.isTypeVariableReference()) + ret = (TypeBinding)typexToBinding.get(typeX); + if (ret == null) { ret = makeTypeBinding1(typeX); // FIXME asc keep type variables *out* of the map for now, they go in typeVariableToTypeBinding - if (!(typeX instanceof BoundedReferenceType)) + if (!(typeX instanceof BoundedReferenceType) && !(typeX instanceof UnresolvedTypeVariableReferenceType)) typexToBinding.put(typeX, ret); } if (ret == null) { |