From: Andy Clement Date: Tue, 12 May 2015 19:14:55 +0000 (-0700) Subject: Do not attach INTERFACE modifier to methods from interfaces X-Git-Tag: V1_8_6~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ef453a5ff86b4cf84e0d7845f7233fa1f0b3907b;p=aspectj.git Do not attach INTERFACE modifier to methods from interfaces --- diff --git a/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml b/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml index 0664d78a1..c26204aa5 100644 --- a/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml +++ b/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml @@ -42,13 +42,13 @@ - + - + - + diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelMethod.java b/weaver/src/org/aspectj/weaver/bcel/BcelMethod.java index 13f883f1e..7fc78b59d 100644 --- a/weaver/src/org/aspectj/weaver/bcel/BcelMethod.java +++ b/weaver/src/org/aspectj/weaver/bcel/BcelMethod.java @@ -83,8 +83,7 @@ class BcelMethod extends ResolvedMemberImpl { BcelMethod(BcelObjectType declaringType, Method method) { super(method.getName().equals("") ? CONSTRUCTOR : (method.getName().equals("") ? 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 attributes) { super(method.getName().equals("") ? CONSTRUCTOR : (method.getName().equals("") ? 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; diff --git a/weaver/testsrc/org/aspectj/weaver/bcel/WorldTestCase.java b/weaver/testsrc/org/aspectj/weaver/bcel/WorldTestCase.java index 111d7e54d..1fb756852 100644 --- a/weaver/testsrc/org/aspectj/weaver/bcel/WorldTestCase.java +++ b/weaver/testsrc/org/aspectj/weaver/bcel/WorldTestCase.java @@ -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;"));