From d82db7bf44e2e0d5f68798c22cd7eb373452bc54 Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Tue, 27 Aug 2013 13:25:30 -0700 Subject: Fix 415957: annotations with 1.8 flags --- tests/bugs180/415957/MyAspect.aj | 8 ++++++++ tests/bugs180/415957/MyClass.java | 5 +++++ tests/src/org/aspectj/systemtest/ajc180/Ajc180Tests.java | 4 ++++ tests/src/org/aspectj/systemtest/ajc180/ajc180.xml | 6 ++++++ 4 files changed, 23 insertions(+) create mode 100644 tests/bugs180/415957/MyAspect.aj create mode 100644 tests/bugs180/415957/MyClass.java (limited to 'tests') diff --git a/tests/bugs180/415957/MyAspect.aj b/tests/bugs180/415957/MyAspect.aj new file mode 100644 index 000000000..673463a55 --- /dev/null +++ b/tests/bugs180/415957/MyAspect.aj @@ -0,0 +1,8 @@ +public aspect MyAspect { + pointcut all(): execution(@javax.annotation.Resource * *(..)); + + + before(): all() { + System.out.println("Hi"); + } +} diff --git a/tests/bugs180/415957/MyClass.java b/tests/bugs180/415957/MyClass.java new file mode 100644 index 000000000..7b596ffd0 --- /dev/null +++ b/tests/bugs180/415957/MyClass.java @@ -0,0 +1,5 @@ +public class MyClass { + @javax.annotation.Resource + public void method() { + } +} diff --git a/tests/src/org/aspectj/systemtest/ajc180/Ajc180Tests.java b/tests/src/org/aspectj/systemtest/ajc180/Ajc180Tests.java index fbdbd29d9..dfa920e52 100644 --- a/tests/src/org/aspectj/systemtest/ajc180/Ajc180Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc180/Ajc180Tests.java @@ -21,6 +21,10 @@ import org.aspectj.testing.XMLBasedAjcTestCase; */ public class Ajc180Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + public void testAnnosWith18Flags_415957() { + runTest("annotations with 1.8 flags"); + } + public void testJava8Code() throws Exception { runTest("first advised java 8 code"); } diff --git a/tests/src/org/aspectj/systemtest/ajc180/ajc180.xml b/tests/src/org/aspectj/systemtest/ajc180/ajc180.xml index 9e651d347..8ea55c136 100644 --- a/tests/src/org/aspectj/systemtest/ajc180/ajc180.xml +++ b/tests/src/org/aspectj/systemtest/ajc180/ajc180.xml @@ -2,6 +2,12 @@ + + + + + + -- cgit v1.2.3