diff options
author | aclement <aclement> | 2006-07-25 07:46:13 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-07-25 07:46:13 +0000 |
commit | 357bbe9eeb34748f7c8c2ff85049230db2adbbf2 (patch) | |
tree | 93f24d16310e32f78d6a5cd71f66ba40afd4017e /tests/bugs153 | |
parent | d3376d042220a3a8de02b22a87131874cd4e48d6 (diff) | |
download | aspectj-357bbe9eeb34748f7c8c2ff85049230db2adbbf2.tar.gz aspectj-357bbe9eeb34748f7c8c2ff85049230db2adbbf2.zip |
test and fix for Bug 150671: declare error on set of volatile field does not work
Diffstat (limited to 'tests/bugs153')
-rw-r--r-- | tests/bugs153/pr150671.aj | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/bugs153/pr150671.aj b/tests/bugs153/pr150671.aj new file mode 100644 index 000000000..86f495bc3 --- /dev/null +++ b/tests/bugs153/pr150671.aj @@ -0,0 +1,16 @@ +class C { + + private volatile int state; + private int test; + + public void foo() { + state = 0; + test = 0; + } + +} + +aspect FSM { + declare error: set(* C.state): "Changing state"; + declare error: set(* C.test): "test"; +} |