diff options
Diffstat (limited to 'tests/bugs154/pr86818/Four.java')
-rw-r--r-- | tests/bugs154/pr86818/Four.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/bugs154/pr86818/Four.java b/tests/bugs154/pr86818/Four.java new file mode 100644 index 000000000..6ed474fd0 --- /dev/null +++ b/tests/bugs154/pr86818/Four.java @@ -0,0 +1,18 @@ +// Four.m() is ITD from another aspect - and itd is annotated +import java.lang.annotation.*; + +@Retention(RetentionPolicy.RUNTIME) @interface A {} + +public class Four { +// public void m() {} --> gone to aspect + public static void main(String []argv) { + if (!(new Four() instanceof java.io.Serializable)) System.err.println("declare parents failed"); + } +} + +aspect Y { + public void Four.m() {} +} +aspect X { + declare parents: hasmethod(@A * * *(..)) implements java.io.Serializable; +} |