diff options
Diffstat (limited to 'tests/bugs150')
-rw-r--r-- | tests/bugs150/pr77269/pack/pr77269.aj | 24 | ||||
-rw-r--r-- | tests/bugs150/pr77269/pack/pr77269c.aj | 19 | ||||
-rw-r--r-- | tests/bugs150/pr77269b.aj | 23 |
3 files changed, 66 insertions, 0 deletions
diff --git a/tests/bugs150/pr77269/pack/pr77269.aj b/tests/bugs150/pr77269/pack/pr77269.aj new file mode 100644 index 000000000..014c1bed8 --- /dev/null +++ b/tests/bugs150/pr77269/pack/pr77269.aj @@ -0,0 +1,24 @@ +package pack; +class Test { + + public void testMethod() { + new Runnable() { + public void run() { + } + }; + class C { + public void m(){ + } + } + } + +} + +aspect A { + + pointcut p() : execution(* run(..)); + + before() : p() { + } + +} diff --git a/tests/bugs150/pr77269/pack/pr77269c.aj b/tests/bugs150/pr77269/pack/pr77269c.aj new file mode 100644 index 000000000..948902347 --- /dev/null +++ b/tests/bugs150/pr77269/pack/pr77269c.aj @@ -0,0 +1,19 @@ +package pack; + +class Test { + + public void testMethod() { + new Runnable() { + public void run() { + someMethod(); + } + }; + } + + public void someMethod() { + } +} + +aspect A { + declare warning : call(void someMethod(..)) : "blah blah blah"; +} diff --git a/tests/bugs150/pr77269b.aj b/tests/bugs150/pr77269b.aj new file mode 100644 index 000000000..4f95dbb2c --- /dev/null +++ b/tests/bugs150/pr77269b.aj @@ -0,0 +1,23 @@ +class Test { + + public void testMethod() { + new Runnable() { + public void run() { + } + }; + class C { + public void m(){ + } + } + } + +} + +aspect A { + + pointcut p() : execution(* m(..)); + + before() : p() { + } + +} |