]> source.dussan.org Git - aspectj.git/commitdiff
Do not attach INTERFACE modifier to methods from interfaces
authorAndy Clement <aclement@gopivotal.com>
Tue, 12 May 2015 19:14:55 +0000 (12:14 -0700)
committerAndy Clement <aclement@gopivotal.com>
Tue, 12 May 2015 19:14:55 +0000 (12:14 -0700)
tests/src/org/aspectj/systemtest/ajc163/ajc163.xml
weaver/src/org/aspectj/weaver/bcel/BcelMethod.java
weaver/testsrc/org/aspectj/weaver/bcel/WorldTestCase.java

index 0664d78a123a0aded0a261f74ad83dfabd284284..c26204aa54fc05f4366a7a11bfc9f6e831dc0d7b 100644 (file)
          <run class="CallTest">
            <stdout>
              <line text="public abstract boolean Authorization.mayPerform(java.lang.String,java.lang.String)"/>
-             <line text="public abstract interface boolean AuthorizationAdmin.mayPerform(java.lang.String, java.lang.String)"/>
+             <line text="public abstract boolean AuthorizationAdmin.mayPerform(java.lang.String, java.lang.String)"/>
              <line text="mayPerform() executing"/>
              <line text="public abstract boolean AuthorizationAdmin.mayPerform2(java.lang.String,java.lang.String)"/>
-             <line text="public abstract interface boolean AuthorizationAdmin.mayPerform2(java.lang.String, java.lang.String)"/>
+             <line text="public abstract boolean AuthorizationAdmin.mayPerform2(java.lang.String, java.lang.String)"/>
              <line text="mayPerform2() executing"/>
              <line text="public abstract boolean Authorization.mayPerform(java.lang.String,java.lang.String)"/>
-             <line text="public abstract interface boolean Authorization.mayPerform(java.lang.String, java.lang.String)"/>
+             <line text="public abstract boolean Authorization.mayPerform(java.lang.String, java.lang.String)"/>
              <line text="mayPerform() executing"/>
            </stdout>
          </run>
index 13f883f1eab45f3dcf843483595b76c781d3bb3a..7fc78b59d8f3a814c1ea11b194a821133f59d9ef 100644 (file)
@@ -83,8 +83,7 @@ class BcelMethod extends ResolvedMemberImpl {
 
        BcelMethod(BcelObjectType declaringType, Method method) {
                super(method.getName().equals("<init>") ? CONSTRUCTOR : (method.getName().equals("<clinit>") ? STATIC_INITIALIZATION
-                               : METHOD), declaringType.getResolvedTypeX(), declaringType.isInterface() ? method.getModifiers()
-                               | Modifier.INTERFACE : method.getModifiers(), method.getName(), method.getSignature());
+                               : METHOD), declaringType.getResolvedTypeX(), method.getModifiers(), method.getName(), method.getSignature());
                this.method = method;
                sourceContext = declaringType.getResolvedTypeX().getSourceContext();
                bcelObjectType = declaringType;
@@ -97,8 +96,7 @@ class BcelMethod extends ResolvedMemberImpl {
         */
        BcelMethod(BcelObjectType declaringType, Method method, List<AjAttribute> attributes) {
                super(method.getName().equals("<init>") ? CONSTRUCTOR : (method.getName().equals("<clinit>") ? STATIC_INITIALIZATION
-                               : METHOD), declaringType.getResolvedTypeX(), declaringType.isInterface() ? method.getModifiers()
-                               | Modifier.INTERFACE : method.getModifiers(), method.getName(), method.getSignature());
+                               : METHOD), declaringType.getResolvedTypeX(), method.getModifiers(), method.getName(), method.getSignature());
                this.method = method;
                sourceContext = declaringType.getResolvedTypeX().getSourceContext();
                bcelObjectType = declaringType;
index 111d7e54dd053852a47839f46befb6fee84459fc..1fb75685299d86304d95eaee6b641ada80e0bc73 100644 (file)
@@ -123,7 +123,7 @@ public class WorldTestCase extends CommonWorldTests {
                                });
                ResolvedMember remove = iter.lookupMethod(MemberImpl.method(iter, 0, "remove", "()V"));
                assertNotNull("iterator doesn't have remove", remove);
-               modifiersTest(remove, Modifier.PUBLIC | Modifier.INTERFACE); // no longer abstract in Java8 (default instead)
+               modifiersTest(remove, Modifier.PUBLIC); // no longer abstract in Java8 (default instead)
                exceptionsTest(remove, UnresolvedType.NONE);
 
                ResolvedMember clone = iter.lookupMethod(MemberImpl.method(UnresolvedType.OBJECT, 0, "clone", "()Ljava/lang/Object;"));