diff options
author | aclement <aclement> | 2008-08-20 18:56:47 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-08-20 18:56:47 +0000 |
commit | 95f5dac42dd995f1c03162a2d43a5d69067e159d (patch) | |
tree | 7c90b8651f3a9039fb615de75d582d2af833eb0a /tests/bugs162 | |
parent | 108712f7777391e2e38609fb4de25e4815cf3892 (diff) | |
download | aspectj-95f5dac42dd995f1c03162a2d43a5d69067e159d.tar.gz aspectj-95f5dac42dd995f1c03162a2d43a5d69067e159d.zip |
239539: test and fix: better message when cannot override pointcut due to it not being visible
Diffstat (limited to 'tests/bugs162')
-rw-r--r-- | tests/bugs162/pr239539/Foo.java | 7 | ||||
-rw-r--r-- | tests/bugs162/pr239539/PrintAround.java | 14 | ||||
-rw-r--r-- | tests/bugs162/pr239539/PrintAroundFoo.java | 9 |
3 files changed, 30 insertions, 0 deletions
diff --git a/tests/bugs162/pr239539/Foo.java b/tests/bugs162/pr239539/Foo.java new file mode 100644 index 000000000..602be10a5 --- /dev/null +++ b/tests/bugs162/pr239539/Foo.java @@ -0,0 +1,7 @@ +package foo; + +public class Foo { + public static void main (String[] args) { + System.out.println("foo!"); + } +} diff --git a/tests/bugs162/pr239539/PrintAround.java b/tests/bugs162/pr239539/PrintAround.java new file mode 100644 index 000000000..acc64c355 --- /dev/null +++ b/tests/bugs162/pr239539/PrintAround.java @@ -0,0 +1,14 @@ +package bar; + +public abstract aspect PrintAround { + + abstract pointcut method(); + + Object around(): method() { + System.out.println("-before-"); + Object r = proceed(); + System.out.println("-after-"); + return r; + } + +} diff --git a/tests/bugs162/pr239539/PrintAroundFoo.java b/tests/bugs162/pr239539/PrintAroundFoo.java new file mode 100644 index 000000000..54d382478 --- /dev/null +++ b/tests/bugs162/pr239539/PrintAroundFoo.java @@ -0,0 +1,9 @@ +package foo; + +import bar.PrintAround; + +public aspect PrintAroundFoo extends PrintAround { + + pointcut method() : call (void Main(String[])); + +} |