]> source.dussan.org Git - aspectj.git/commitdiff
fix for 150095: generics binary decp
authoraclement <aclement>
Mon, 10 Jul 2006 14:54:44 +0000 (14:54 +0000)
committeraclement <aclement>
Mon, 10 Jul 2006 14:54:44 +0000 (14:54 +0000)
weaver/src/org/aspectj/weaver/ResolvedMemberImpl.java

index 3f39fdb7160a605d863e34277cf2cedc2cbe28d3..71eb910cb7aa839e9d66f2d228b3cc6200373e99 100644 (file)
@@ -681,7 +681,15 @@ public class ResolvedMemberImpl extends MemberImpl implements IHasPosition, Anno
                        } else {
                                return aType.getRawType();
                        }
-               } 
+               } else if (aType.isArray()) {
+                       // The component type might be a type variable (pr150095)
+                       int dims = 1;
+                       String sig = aType.getSignature();
+                       while (sig.charAt(dims)=='[') dims++;
+                       UnresolvedType componentSig = UnresolvedType.forSignature(sig.substring(dims));
+                       UnresolvedType arrayType = ResolvedType.makeArray(parameterize(componentSig,typeVariableMap,inParameterizedType),dims);
+                       return arrayType;
+               }
                return aType;           
        }