From f06df41e4038bbde47a9934b240a3c064aa26099 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 20 Oct 2005 13:54:50 +0000 Subject: test and fix for pr113073 from Helen --- tests/bugs150/pr113073.java | 17 +++++++++++++++++ .../src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | 4 ++++ tests/src/org/aspectj/systemtest/ajc150/ajc150.xml | 10 ++++++++++ 3 files changed, 31 insertions(+) create mode 100644 tests/bugs150/pr113073.java (limited to 'tests') diff --git a/tests/bugs150/pr113073.java b/tests/bugs150/pr113073.java new file mode 100644 index 000000000..9e57ffaa9 --- /dev/null +++ b/tests/bugs150/pr113073.java @@ -0,0 +1,17 @@ +@interface Annotation{} +aspect B { + declare @method : public * C.anotherMethod(..) : @Annotation; // should be woven + declare @constructor : C.new(String) : @Annotation; +} + +class C { +} + +aspect D { + public C.new(String s) { + } + public void C.anotherMethod(String s) { + } + public void C.anotherMethod() { + } +} diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java index c2ac24822..a6f8acb46 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java @@ -618,6 +618,10 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase { public void testVarArgsIITDInConstructor() { runTest("ITD varargs in constructor"); } + + public void testWeaveInfoMessageForDeclareAtMethodOnITDdMethod() { + runTest("weaveinfo message for declare at method on an ITDd method"); + } // helper methods..... diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml index 4c43a907e..b4648155f 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml @@ -660,6 +660,16 @@ + + + + + + + + + + -- cgit v1.2.3