diff options
Diffstat (limited to 'tests/bugs152/pr125480/AbstractMethods.aj')
-rw-r--r-- | tests/bugs152/pr125480/AbstractMethods.aj | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/bugs152/pr125480/AbstractMethods.aj b/tests/bugs152/pr125480/AbstractMethods.aj new file mode 100644 index 000000000..f252d8838 --- /dev/null +++ b/tests/bugs152/pr125480/AbstractMethods.aj @@ -0,0 +1,31 @@ +import org.aspectj.lang.annotation.*; + + +@Aspect +public abstract class AbstractMethods { + + @Pointcut + protected abstract void tracingScope(); + + @Before("tracingScope()") + public void doit() { + test(); + System.out.println("advice running"); + } + protected abstract void test(); +} + +/* +public abstract aspect AbstractMethods { + + protected abstract pointcut tracingScope (); + + before () : tracingScope () { + test(); + System.out.println("advice running"); + } + + protected abstract void test (); +// protected void test () {} +} +*/ |