diff options
author | wisberg <wisberg> | 2003-04-19 20:47:30 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2003-04-19 20:47:30 +0000 |
commit | a1f90ec4260a3d328ac7209044ee34f72ed06d9f (patch) | |
tree | 2aac435b72df5032a049054ac16c8d0f291129da /tests/new | |
parent | 5d8dd96b88f02386f3c2bb587e4846a691b01d36 (diff) | |
download | aspectj-a1f90ec4260a3d328ac7209044ee34f72ed06d9f.tar.gz aspectj-a1f90ec4260a3d328ac7209044ee34f72ed06d9f.zip |
@testcase PR#36673 privileged aspect main verify error
Diffstat (limited to 'tests/new')
-rw-r--r-- | tests/new/verifyError/Privilege.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/new/verifyError/Privilege.java b/tests/new/verifyError/Privilege.java new file mode 100644 index 000000000..a49850f84 --- /dev/null +++ b/tests/new/verifyError/Privilege.java @@ -0,0 +1,19 @@ + +import org.aspectj.testing.Tester; + +class C { + private int i; +} + +privileged aspect A { + private int C.j = 1; +} + +/** @testcase PR#36673 privileged aspect main verify error */ +public privileged aspect Privilege { + public static void main(String[] args) { + C c = new C(); + Tester.check(1 == c.j, "wrong value for c.j"); + } +} + |