Browse Source

229910 - dont generate bad code for around advice on fieldset for an inherited field

tags/Root_refactoring
aclement 16 years ago
parent
commit
6df42fc2fc

+ 31
- 0
tests/bugs161/pr229910/Test.java View File

@@ -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(); }

}

+ 2
- 1
tests/src/org/aspectj/systemtest/ajc161/Ajc161Tests.java View File

@@ -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() {

+ 6
- 0
tests/src/org/aspectj/systemtest/ajc161/ajc161.xml View File

@@ -3,9 +3,15 @@
<!-- AspectJ v1.6.1 Tests -->
<suite>

<ajc-test dir="bugs161/pr229910" title="around advice on field set">
<compile files="Test.java" options="-1.5"/>
<run class="Test"/>
</ajc-test>
<ajc-test dir="bugs161/pr226567" title="pipeline compilation and generic return type">
<compile files="BarAspect.aj Foo.java Bar.java" options="-1.5"/>
<compile files="BarAspect.aj Bar.java Foo.java" options="-1.5"/>
</ajc-test>

</suite>

Loading…
Cancel
Save