aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr87530/FinalITDMOnInterface2.aj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs150/pr87530/FinalITDMOnInterface2.aj')
-rw-r--r--tests/bugs150/pr87530/FinalITDMOnInterface2.aj24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/bugs150/pr87530/FinalITDMOnInterface2.aj b/tests/bugs150/pr87530/FinalITDMOnInterface2.aj
new file mode 100644
index 000000000..5b08e6e6d
--- /dev/null
+++ b/tests/bugs150/pr87530/FinalITDMOnInterface2.aj
@@ -0,0 +1,24 @@
+public class FinalITDMOnInterface2 {
+
+ public static void main(String[] args) {
+ FinalITDMOnInterface2 f = new FinalITDMOnInterface2();
+ f.m();
+ }
+
+ public void m() {
+ System.out.println("in class method");
+ }
+
+}
+
+aspect A {
+
+ interface TestInterface {}
+
+ public final void TestInterface.m() {
+ System.out.println("in aspect declared method");
+ }
+
+ declare parents : FinalITDMOnInterface2 implements TestInterface;
+
+} \ No newline at end of file