]> source.dussan.org Git - aspectj.git/commitdiff
231396: reworked wildcard handling
authoraclement <aclement>
Fri, 30 May 2008 17:24:46 +0000 (17:24 +0000)
committeraclement <aclement>
Fri, 30 May 2008 17:24:46 +0000 (17:24 +0000)
weaver/src/org/aspectj/weaver/ResolvedMemberImpl.java

index e8c9f35e11b8e1035661af2bf9d6a2b18b29a9b2..7d3847d5819849727b7276f7f7322318c83a6e89 100644 (file)
@@ -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()) {