diff options
author | aclement <aclement> | 2008-05-30 17:24:46 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-05-30 17:24:46 +0000 |
commit | 210aeea950b7e53e40c6b3fed6c1f1df981b2a87 (patch) | |
tree | 5f9febd9ce6ce47ca83d10ade3c36b01c159004a /weaver | |
parent | 118fb4d21a506000b6eb33c82913974b58d5f760 (diff) | |
download | aspectj-210aeea950b7e53e40c6b3fed6c1f1df981b2a87.tar.gz aspectj-210aeea950b7e53e40c6b3fed6c1f1df981b2a87.zip |
231396: reworked wildcard handling
Diffstat (limited to 'weaver')
-rw-r--r-- | weaver/src/org/aspectj/weaver/ResolvedMemberImpl.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/weaver/src/org/aspectj/weaver/ResolvedMemberImpl.java b/weaver/src/org/aspectj/weaver/ResolvedMemberImpl.java index e8c9f35e1..7d3847d58 100644 --- a/weaver/src/org/aspectj/weaver/ResolvedMemberImpl.java +++ b/weaver/src/org/aspectj/weaver/ResolvedMemberImpl.java @@ -907,7 +907,8 @@ public class ResolvedMemberImpl extends MemberImpl implements IHasPosition, Anno for (int i = 0; i < myParameterTypes.length; i++) { UnresolvedType thisParameter = myParameterTypes[i]; if (thisParameter.isTypeVariableReference()) { - sig.append(thisParameter.getUpperBound().getSignature()); + TypeVariableReferenceType typeVariableRT = (TypeVariableReferenceType) thisParameter; + sig.append(typeVariableRT.getUpperBound().getSignature()); } else { sig.append(thisParameter.getSignature()); } @@ -920,12 +921,13 @@ public class ResolvedMemberImpl extends MemberImpl implements IHasPosition, Anno // comparison. public static void appendSigWithTypeVarBoundsRemoved(UnresolvedType aType, StringBuffer toBuffer, Set alreadyUsedTypeVars) { if (aType.isTypeVariableReference()) { + TypeVariableReferenceType typeVariableRT = (TypeVariableReferenceType) aType; // pr204505 if (alreadyUsedTypeVars.contains(aType)) { toBuffer.append("..."); } else { alreadyUsedTypeVars.add(aType); - appendSigWithTypeVarBoundsRemoved(aType.getUpperBound(), toBuffer, alreadyUsedTypeVars); + appendSigWithTypeVarBoundsRemoved(typeVariableRT.getUpperBound(), toBuffer, alreadyUsedTypeVars); } // toBuffer.append("T;"); } else if (aType.isParameterizedType()) { |