From: aclement Date: Fri, 2 May 2008 02:20:24 +0000 (+0000) Subject: 229910 - dont generate bad code for around advice on fieldset for an inherited field X-Git-Tag: Root_refactoring~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6df42fc2fca5a3074880dbc57b92ed7bdb238937;p=aspectj.git 229910 - dont generate bad code for around advice on fieldset for an inherited field --- diff --git a/tests/bugs161/pr229910/Test.java b/tests/bugs161/pr229910/Test.java new file mode 100644 index 000000000..139ce636b --- /dev/null +++ b/tests/bugs161/pr229910/Test.java @@ -0,0 +1,31 @@ +public class Test { + + public static void main(String[] argv) { + new Foo(); + } + +} + +interface I {} + +abstract class AbstractFoo implements I { + + String f; + + AbstractFoo() { + } +} + +class Foo extends AbstractFoo { + + Foo() { + super(); + f = "hello"; + } +} + +aspect X { + + void around(): target(I) && set(* *) { proceed(); } + +} diff --git a/tests/src/org/aspectj/systemtest/ajc161/Ajc161Tests.java b/tests/src/org/aspectj/systemtest/ajc161/Ajc161Tests.java index d9321b6aa..8d1badc21 100644 --- a/tests/src/org/aspectj/systemtest/ajc161/Ajc161Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc161/Ajc161Tests.java @@ -18,7 +18,8 @@ import org.aspectj.testing.XMLBasedAjcTestCase; public class Ajc161Tests extends org.aspectj.testing.XMLBasedAjcTestCase { - // AspectJ1.6.0rc1 + // AspectJ1.6.1 + public void testAroundAdviceOnFieldSet_pr229910() { runTest("around advice on field set"); } public void testPipelineCompilationGenericReturnType_pr226567() { runTest("pipeline compilation and generic return type"); } public static Test suite() { diff --git a/tests/src/org/aspectj/systemtest/ajc161/ajc161.xml b/tests/src/org/aspectj/systemtest/ajc161/ajc161.xml index 77b0b60af..210df6462 100644 --- a/tests/src/org/aspectj/systemtest/ajc161/ajc161.xml +++ b/tests/src/org/aspectj/systemtest/ajc161/ajc161.xml @@ -3,9 +3,15 @@ + + + + + + \ No newline at end of file