diff options
author | acolyer <acolyer> | 2004-08-18 12:39:40 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2004-08-18 12:39:40 +0000 |
commit | dfb15c1777ab6995528a0a0d49faf0ef74578db6 (patch) | |
tree | c4191b121d6f1c297116f7a08f8403e3a9f59633 /tests/src | |
parent | 5b902242b00ffaf3105335f231e45291e7d09320 (diff) | |
download | aspectj-dfb15c1777ab6995528a0a0d49faf0ef74578db6.tar.gz aspectj-dfb15c1777ab6995528a0a0d49faf0ef74578db6.zip |
fix for Bugzilla Bug 71723
Inconsistency in scoping of protected members in ITDs
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc121/Ajc121Tests.java | 5 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc121/ajc121-tests.xml | 10 |
2 files changed, 14 insertions, 1 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc121/Ajc121Tests.java b/tests/src/org/aspectj/systemtest/ajc121/Ajc121Tests.java index c857b40ca..d72492811 100644 --- a/tests/src/org/aspectj/systemtest/ajc121/Ajc121Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc121/Ajc121Tests.java @@ -236,10 +236,13 @@ public class Ajc121Tests extends org.aspectj.testing.XMLBasedAjcTestCase { // s.indexOf("CAUSE=org.aspectj.lang.NoAspectBoundException")!=-1); } - public void test044_ITDnameClashes() { runTest("ITD name clashes with private members"); } + public void test045_ITDprotectedVisibility() { + runTest("Inconsistency in scoping of protected members in ITDs"); + } + } diff --git a/tests/src/org/aspectj/systemtest/ajc121/ajc121-tests.xml b/tests/src/org/aspectj/systemtest/ajc121/ajc121-tests.xml index e6f71c3c0..3116d9a50 100644 --- a/tests/src/org/aspectj/systemtest/ajc121/ajc121-tests.xml +++ b/tests/src/org/aspectj/systemtest/ajc121/ajc121-tests.xml @@ -345,3 +345,13 @@ </compile> </ajc-test> + <ajc-test dir="bugs/pr71723" pr="71723" + title="Inconsistency in scoping of protected members in ITDs"> + <compile files="foo/Foo.java,bar/Bar.aj"> + <message kind="error" line="8" text="The method i() from the type Foo is not visible"/> + <message kind="error" line="9" text="The method ancientI() from the type Foo is not visible"/> + <message kind="error" line="10" text="The method ancientJ() from the type AncientFoo is not visible"/> + <message kind="error" line="11" text="The method clone() from the type Object is not visible"/> + <message kind="error" line="12" text="The method clone() from the type Object is not static"/> + </compile> + </ajc-test>
\ No newline at end of file |