]> source.dussan.org Git - aspectj.git/commitdiff
Fix for Bugzilla Bug 98320: [generics][itds] intertype with nested generic type....
authoraclement <aclement>
Tue, 14 Jun 2005 15:15:01 +0000 (15:15 +0000)
committeraclement <aclement>
Tue, 14 Jun 2005 15:15:01 +0000 (15:15 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java

index b6998e919be196c52440d9104c7f1296214d579d..b4b89cf5e1d8f6ecbb0cde5527a42ddd8fffa619 100644 (file)
@@ -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());