diff options
author | aclement <aclement> | 2005-06-14 15:15:01 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-06-14 15:15:01 +0000 |
commit | bdfe1316585fb6697eba3beeef0095bc9039371a (patch) | |
tree | f21930c5ba4dd57f8c46eb633e4336f2ede0409b | |
parent | 4ec94ca9b3289dd24c77d8d563516822af4f5a12 (diff) | |
download | aspectj-bdfe1316585fb6697eba3beeef0095bc9039371a.tar.gz aspectj-bdfe1316585fb6697eba3beeef0095bc9039371a.zip |
Fix for Bugzilla Bug 98320: [generics][itds] intertype with nested generic type. Now allows for nesting of parameterization by making recursive calls to resolve types and make bindings.
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | 6 |
1 files changed, 3 insertions, 3 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 b6998e919..b4b89cf5e 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 @@ -205,7 +205,7 @@ public class EclipseFactory { WildcardBinding wcb = (WildcardBinding) ptb.arguments[i]; arguments[i] = getName(((TypeVariableBinding)wcb.typeVariable()).firstBound); } else { - arguments[i] = getName(ptb.arguments[i]); + arguments[i] = fromBinding(ptb.arguments[i]).getName(); } } return TypeX.forParameterizedTypeNames(getName(binding), arguments); @@ -361,9 +361,9 @@ public class EclipseFactory { } else { TypeX[] typeParameters = typeX.getTypeParameters(); ReferenceBinding baseTypeBinding = lookupBinding(typeX.getBaseName()); - ReferenceBinding[] argumentBindings = new ReferenceBinding[typeParameters.length]; + TypeBinding[] argumentBindings = new TypeBinding[typeParameters.length]; for (int i = 0; i < argumentBindings.length; i++) { - argumentBindings[i] = lookupBinding(typeParameters[i].getName()); + argumentBindings[i] = makeTypeBinding(typeParameters[i]); } ParameterizedTypeBinding ptb = lookupEnvironment.createParameterizedType(baseTypeBinding,argumentBindings,baseTypeBinding.enclosingType()); |