diff options
author | acolyer <acolyer> | 2005-09-05 14:07:39 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-09-05 14:07:39 +0000 |
commit | a905c8e46f43684ef19adc4817374b82f2b0993d (patch) | |
tree | 63f6ef8a407ca6cae02d6e3a90a7b550ec8b9f7a /tests/bugs150/pr87530/FinalITDMOnInterface2.aj | |
parent | df46c6f728502a74b2d042a0a955eab1326ba76a (diff) | |
download | aspectj-a905c8e46f43684ef19adc4817374b82f2b0993d.tar.gz aspectj-a905c8e46f43684ef19adc4817374b82f2b0993d.zip |
tests for pr87530, final modifier on interface itdm
Diffstat (limited to 'tests/bugs150/pr87530/FinalITDMOnInterface2.aj')
-rw-r--r-- | tests/bugs150/pr87530/FinalITDMOnInterface2.aj | 24 |
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 |