From b0622ad2495f6bd3744751c9e52375f4b5601114 Mon Sep 17 00:00:00 2001 From: acolyer Date: Sat, 20 Aug 2005 12:11:37 +0000 Subject: tests for pr78314 and pr80571 --- tests/bugs150/pr80571.aj | 22 +++++++++++++++++++++ .../org/aspectj/systemtest/ajc150/Ajc150Tests.java | 8 ++++++++ tests/src/org/aspectj/systemtest/ajc150/ajc150.xml | 23 +++++++++++++++++++++- 3 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 tests/bugs150/pr80571.aj diff --git a/tests/bugs150/pr80571.aj b/tests/bugs150/pr80571.aj new file mode 100644 index 000000000..f7e3bc806 --- /dev/null +++ b/tests/bugs150/pr80571.aj @@ -0,0 +1,22 @@ +public class pr80571 { + + public static void main(String[] args) { + new pr80571(); + } + +} + +interface I { + public final String NAME = "I"; + public pr80571 testObj = new pr80571(); + +} + +aspect A { + Object around() : call(*.new(..)) { + System.out.println("before"); + Object ret = proceed(); + System.out.println("after"); + return ret; + } +} \ No newline at end of file diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java index 5827bc445..e4dcf188d 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java @@ -250,6 +250,14 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase { runTest("declare warning : foo(str) : ...;"); } + public void testAroundAdviceAndInterfaceInitializer() { + runTest("around advice on interface initializer"); + } + + public void testGoodErrorMessageOnUnmatchedMemberSyntax() { + runTest("good error message for unmatched member syntax"); + } + // helper methods..... public SyntheticRepository createRepos(File cpentry) { diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml index 9551abe56..362b41c9a 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml @@ -270,7 +270,28 @@ - + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3