From 3db6ee486652630ec9298465bb3727802d3be6e6 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 19 Apr 2005 10:41:20 +0000 Subject: Andrew Huffs test programs for @AJ --- tests/java5/ataspectj/coverage/Test001.java | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/java5/ataspectj/coverage/Test001.java (limited to 'tests/java5/ataspectj/coverage/Test001.java') 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(); + } +} -- cgit v1.2.3