]> source.dussan.org Git - aspectj.git/commitdiff
242797
authoraclement <aclement>
Thu, 7 Aug 2008 18:19:37 +0000 (18:19 +0000)
committeraclement <aclement>
Thu, 7 Aug 2008 18:19:37 +0000 (18:19 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/InterTypeMemberFinder.java
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/InterTypeMethodBinding.java

index 35226031852512b345c9e57eb77a126ede2bf554..da1d66f0dd3181f622f6b3c74a038ca60f491293 100644 (file)
@@ -248,7 +248,7 @@ public class InterTypeMemberFinder implements IMemberFinder {
        // find all of my methods, including ITDs
        // PLUS: any public ITDs made on interfaces that I implement
        public MethodBinding[] methods(SourceTypeBinding sourceTypeBinding) {
-               MethodBinding[] orig = sourceTypeBinding.methods();
+               MethodBinding[] orig = sourceTypeBinding.methodsBase();
 //             if (interTypeMethods.isEmpty()) return orig;
                
                List ret = new ArrayList(Arrays.asList(orig));
index 0205134ff20891b8c12340ed27f462c9a7836bca..7206f7ad290bc729b6c8f4ffa44336d36730612e 100644 (file)
@@ -68,13 +68,7 @@ public class InterTypeMethodBinding extends MethodBinding {
                // 1st set:
                // If the typevariable is one declared on the source method, then we know we are the declaring element
                for (int i = 0; i < typeVariables.length; i++) {
-                       TypeVariableBinding tv = typeVariables[i];
-                       String name = new String(tv.sourceName);
-                       TypeVariableBinding[] tv2 = sourceMethod.binding.typeVariables;
-                       for (int j = 0; j < tv2.length; j++) {
-                               TypeVariableBinding typeVariable = tv2[j];
-                               if (new String(tv2[j].sourceName).equals(name)) typeVariables[i].declaringElement = this;
-                       }
+                       typeVariables[i].declaringElement = this;
                }
                for (int i = 0; i < typeVariables.length; i++) {
                        if (typeVariables[i].declaringElement==null) throw new RuntimeException("Declaring element not set");