From: aclement Date: Thu, 25 Mar 2010 22:01:16 +0000 (+0000) Subject: 307120: field accesses in itds of private fields X-Git-Tag: V1_6_9M1~30 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d55213952a178932984d98daec65b1d6034427ad;p=aspectj.git 307120: field accesses in itds of private fields --- diff --git a/tests/bugs169/pr307120/A.java b/tests/bugs169/pr307120/A.java new file mode 100644 index 000000000..643073bb9 --- /dev/null +++ b/tests/bugs169/pr307120/A.java @@ -0,0 +1,5 @@ +class A { + private + int foo; + int goo; +} diff --git a/tests/bugs169/pr307120/Test.java b/tests/bugs169/pr307120/Test.java new file mode 100644 index 000000000..a1dc40a44 --- /dev/null +++ b/tests/bugs169/pr307120/Test.java @@ -0,0 +1,14 @@ +privileged aspect Test { + + before(): get(* foo) {} + + before(): get(* goo) {} + + public int A.getFoo() { + return foo; + } + + public int A.getGoo() { + return goo; + } +} diff --git a/tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java b/tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java index 5953efbca..80d992169 100644 --- a/tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc169/Ajc169Tests.java @@ -18,10 +18,22 @@ import org.aspectj.testing.XMLBasedAjcTestCase; public class Ajc169Tests extends org.aspectj.testing.XMLBasedAjcTestCase { +// public void testAmbiguousMethod_298665() { +// runTest("ambiguous method"); +// } + // public void testStaticallyAnalyzableIf_292262_1() { // runTest("if with statically recognizable code"); // } + public void testAdvisingPrivilegedAccessMember_307120() { + runTest("advising privileged access member"); + } + + public void testAdvisingPrivilegedAccessMember_307120_2() { + runTest("advising privileged access member - 2"); + } + public void testTypePatternCategories_44365_Class() { runTest("type category type patterns - class"); } @@ -70,9 +82,6 @@ public class Ajc169Tests extends org.aspectj.testing.XMLBasedAjcTestCase { runTest("type category type patterns - e2"); } - // public void testAmbiguousMethod_298665() { - // runTest("ambiguous method"); - // } public void testChecker() { runTest("inserts in messages"); diff --git a/tests/src/org/aspectj/systemtest/ajc169/ajc169.xml b/tests/src/org/aspectj/systemtest/ajc169/ajc169.xml index caf0e8ec3..37fa62e14 100644 --- a/tests/src/org/aspectj/systemtest/ajc169/ajc169.xml +++ b/tests/src/org/aspectj/systemtest/ajc169/ajc169.xml @@ -2,6 +2,22 @@ + + + + + + + + + + + + + + + +