diff options
Diffstat (limited to 'tests/java5/ataspectj/coverage/Test001.java')
-rw-r--r-- | tests/java5/ataspectj/coverage/Test001.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/java5/ataspectj/coverage/Test001.java b/tests/java5/ataspectj/coverage/Test001.java new file mode 100644 index 000000000..f5f43f54d --- /dev/null +++ b/tests/java5/ataspectj/coverage/Test001.java @@ -0,0 +1,23 @@ +//"@Aspect extending Aspect" + +// This ought to be possible, need to see where the 'can not extend' message +// is coming from and see if you can check for attributes at that point. +// not sure what would happen if these pieces were compiled separately - +// suspect it would be OK if javac is used for class C but not if ajc is used. + +import org.aspectj.lang.annotation.*; + +abstract aspect B{ + abstract void say(); +} + +@Aspect +class C extends B{ + + void say(){ } + + public static void Main(String[] args){ + C thing = new C(); + thing.say(); + } +} |