diff options
author | aclement <aclement> | 2005-10-04 08:05:55 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-10-04 08:05:55 +0000 |
commit | 45730680627912726919028374403612047c23e3 (patch) | |
tree | 8bddf056c74fb9b79bcd9970526e231502bb9a3c /tests/bugs150 | |
parent | 0fae66242efd3fd91dc7ace349cdcf7e5ebc2ade (diff) | |
download | aspectj-45730680627912726919028374403612047c23e3.tar.gz aspectj-45730680627912726919028374403612047c23e3.zip |
Fix and tests for pr77269: incorrect structure model for inner types. (Patch from Helen Hawkins).
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() { + } + +} |