diff options
author | jhugunin <jhugunin> | 2003-05-28 20:49:54 +0000 |
---|---|---|
committer | jhugunin <jhugunin> | 2003-05-28 20:49:54 +0000 |
commit | 333ed13ecac59cd07c2356153b6e0e4204792cd8 (patch) | |
tree | b469393c037e9463a5e43a383eb100f73ed6ad97 | |
parent | a0d2d2d0de4ab0e67a714d3fec46d96b268ca1e4 (diff) | |
download | aspectj-333ed13ecac59cd07c2356153b6e0e4204792cd8.tar.gz aspectj-333ed13ecac59cd07c2356153b6e0e4204792cd8.zip |
Bugzilla Bug 38212
can not resolve this member warning
This test currently passes, and therefore must be missing the bug; however,
this is the closest I could come to the bug as reported.
-rw-r--r-- | tests/ajcTests.xml | 10 | ||||
-rw-r--r-- | tests/bugs/accessMethods/p1/Base.java | 9 | ||||
-rw-r--r-- | tests/bugs/accessMethods/p2/Derived.java | 21 | ||||
-rw-r--r-- | tests/jimTests.xml | 1 |
4 files changed, 40 insertions, 1 deletions
diff --git a/tests/ajcTests.xml b/tests/ajcTests.xml index 35bf71f94..59ff49255 100644 --- a/tests/ajcTests.xml +++ b/tests/ajcTests.xml @@ -6372,4 +6372,14 @@ <compile files="WideJumps.java"/> <run class="WideJumps"/> </ajc-test> + + <!-- This doesn't actually reproduce the bug, but no test case has been submitted + that does so this is here as a place-holder and to verify that we're mostly + working. + --> + <ajc-test dir="bugs/accessMethods" pr="38212" + title="can not resolve this member warning"> + <compile files="p1/Base.java,p2/Derived.java"/> + <run class="p2.Derived"/> + </ajc-test> </suite> diff --git a/tests/bugs/accessMethods/p1/Base.java b/tests/bugs/accessMethods/p1/Base.java new file mode 100644 index 000000000..1d538b7d2 --- /dev/null +++ b/tests/bugs/accessMethods/p1/Base.java @@ -0,0 +1,9 @@ +package p1; + +public class Base { + protected int value=0; + + protected String getName() { + return "Base"; + } +}
\ No newline at end of file diff --git a/tests/bugs/accessMethods/p2/Derived.java b/tests/bugs/accessMethods/p2/Derived.java new file mode 100644 index 000000000..ab84cdf6a --- /dev/null +++ b/tests/bugs/accessMethods/p2/Derived.java @@ -0,0 +1,21 @@ +package p2; + +public class Derived extends p1.Base { + public static void main(String[] args) { + Derived d = new Derived(); + Inner i = d.new Inner(); + System.out.println(i.getFullName()); + } + + class Inner { + public String getFullName() { + return Derived.this.getName() + ":" + getName() + ":" + + Derived.this.value + ":" + value; + } + } + + static aspect A { + before(): withincode(* get*Name(..)) { } + } + +}
\ No newline at end of file diff --git a/tests/jimTests.xml b/tests/jimTests.xml index 794657719..80a883ac8 100644 --- a/tests/jimTests.xml +++ b/tests/jimTests.xml @@ -1,5 +1,4 @@ <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"> <suite> - </suite>
\ No newline at end of file |