summaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoraclement <aclement>2005-07-11 10:45:27 +0000
committeraclement <aclement>2005-07-11 10:45:27 +0000
commit5de55b02cb75716fb4aba5fdf90e5e4e3f312ef5 (patch)
treea41bff1a540fcf1938f5ceaeba9f9bfde4bb9ec8 /org.aspectj.ajdt.core
parent84ed1f5dead0a2380ce14cf147490db3b659fc65 (diff)
downloadaspectj-5de55b02cb75716fb4aba5fdf90e5e4e3f312ef5.tar.gz
aspectj-5de55b02cb75716fb4aba5fdf90e5e4e3f312ef5.zip
generics: ask for the appropriate TypeX depending on the binding
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java7
1 files changed, 6 insertions, 1 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 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);