From 5ab92340fd029ba54a07e568e82e4dbe61580c95 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 10 Jul 2006 14:54:44 +0000 Subject: [PATCH] fix for 150095: generics binary decp --- weaver/src/org/aspectj/weaver/ResolvedMemberImpl.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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; } -- 2.39.5