From: aclement Date: Mon, 10 Jul 2006 14:54:44 +0000 (+0000) Subject: fix for 150095: generics binary decp X-Git-Tag: PRE_PIPELINE~51 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5ab92340fd029ba54a07e568e82e4dbe61580c95;p=aspectj.git fix for 150095: generics binary decp --- diff --git a/weaver/src/org/aspectj/weaver/ResolvedMemberImpl.java b/weaver/src/org/aspectj/weaver/ResolvedMemberImpl.java index 3f39fdb71..71eb910cb 100644 --- a/weaver/src/org/aspectj/weaver/ResolvedMemberImpl.java +++ b/weaver/src/org/aspectj/weaver/ResolvedMemberImpl.java @@ -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; }