From 43d34f58ff0ee4c9e36ccc083e3c73d22b7c928d Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 16 Apr 2009 19:17:51 +0000 Subject: [PATCH] 272233: test and fix, using 'void' --- tests/bugs165/pr272233/Iffy.java | 21 +++++++++++++++++++ tests/bugs165/pr272233/Iffy2.java | 16 ++++++++++++++ .../systemtest/ajc165/Ajc165Tests.java | 8 +++++++ .../org/aspectj/systemtest/ajc165/ajc165.xml | 13 ++++++++++++ 4 files changed, 58 insertions(+) create mode 100644 tests/bugs165/pr272233/Iffy.java create mode 100644 tests/bugs165/pr272233/Iffy2.java diff --git a/tests/bugs165/pr272233/Iffy.java b/tests/bugs165/pr272233/Iffy.java new file mode 100644 index 000000000..dc0f88c40 --- /dev/null +++ b/tests/bugs165/pr272233/Iffy.java @@ -0,0 +1,21 @@ +import java.util.*; +import org.aspectj.lang.annotation.*; + +@Aspect +class A { +@Pointcut("execution(!void[] *(..))") +void pointCutError() {} + + @Before("pointCutError()") + public void m() {} +} + + +public class Iffy { + + +public Collection[] getCollectionArray() { + return null; +} + +} diff --git a/tests/bugs165/pr272233/Iffy2.java b/tests/bugs165/pr272233/Iffy2.java new file mode 100644 index 000000000..15a5d79fd --- /dev/null +++ b/tests/bugs165/pr272233/Iffy2.java @@ -0,0 +1,16 @@ +import java.util.*; +import org.aspectj.lang.annotation.*; + +@Aspect +class Iffy2 { + + @Before("execution(!void[] *(..))") + public void advice1() {} + + @Before("execution(!void[] *(..))") + public void advice2() {} + + public Collection[] getCollectionArray() { + return null; + } +} diff --git a/tests/src/org/aspectj/systemtest/ajc165/Ajc165Tests.java b/tests/src/org/aspectj/systemtest/ajc165/Ajc165Tests.java index d313400a0..ccad2d7de 100644 --- a/tests/src/org/aspectj/systemtest/ajc165/Ajc165Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc165/Ajc165Tests.java @@ -20,6 +20,14 @@ import org.aspectj.weaver.LintMessage; public class Ajc165Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + public void testFunkyPointcut_pr272233() { + runTest("funky pointcut"); + } + + public void testFunkyPointcut_pr272233_2() { + runTest("funky pointcut 2"); + } + public void testAnnotationStyle_pr265356() { runTest("annotation style message positions"); List ms = ajc.getLastCompilationResult().getWarningMessages(); diff --git a/tests/src/org/aspectj/systemtest/ajc165/ajc165.xml b/tests/src/org/aspectj/systemtest/ajc165/ajc165.xml index aa2371288..42a99cd1b 100644 --- a/tests/src/org/aspectj/systemtest/ajc165/ajc165.xml +++ b/tests/src/org/aspectj/systemtest/ajc165/ajc165.xml @@ -2,6 +2,19 @@ + + + + + + + + + + + + + -- 2.39.5