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.tags/V1_1_0
@@ -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> |
@@ -0,0 +1,9 @@ | |||
package p1; | |||
public class Base { | |||
protected int value=0; | |||
protected String getName() { | |||
return "Base"; | |||
} | |||
} |
@@ -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(..)) { } | |||
} | |||
} |
@@ -1,5 +1,4 @@ | |||
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"> | |||
<suite> | |||
</suite> |