]> source.dussan.org Git - aspectj.git/commitdiff
279983: generic method overriding
authoraclement <aclement>
Tue, 28 Jul 2009 01:52:35 +0000 (01:52 +0000)
committeraclement <aclement>
Tue, 28 Jul 2009 01:52:35 +0000 (01:52 +0000)
org.aspectj.matcher/src/org/aspectj/weaver/ResolvedMemberImpl.java

index 66e8e8fb1c33c43404512839a7343c6f240378fe..46d6ab1f88ad5d1bb1a6cf6ee46a3a40cbd40aa0 100644 (file)
@@ -995,12 +995,8 @@ public class ResolvedMemberImpl extends MemberImpl implements IHasPosition, Anno
                UnresolvedType[] myParameterTypes = getParameterTypes();
                for (int i = 0; i < myParameterTypes.length; i++) {
                        UnresolvedType thisParameter = myParameterTypes[i];
-                       if (thisParameter.isTypeVariableReference()) {
-                               TypeVariableReferenceType typeVariableRT = (TypeVariableReferenceType) thisParameter;
-                               sig.append(typeVariableRT.getFirstBound().getSignature());
-                       } else {
-                               sig.append(thisParameter.getErasureSignature());
-                       }
+                       // type vars will be erased to first bound
+                       sig.append(thisParameter.getErasureSignature());
                }
                myParameterSignatureErasure = sig.toString();
                return myParameterSignatureErasure;