From 40fcaa1e19cdc9c402d54a9070755880363efe46 Mon Sep 17 00:00:00 2001 From: aclement Date: Sat, 10 Dec 2011 01:08:19 +0000 Subject: [PATCH] 1.7 sanity test --- tests/bugs170/sanity/DeclareAtType.java | 14 ++++++++++++++ .../org/aspectj/systemtest/ajc170/Ajc170Tests.java | 4 ++++ tests/src/org/aspectj/systemtest/ajc170/ajc170.xml | 5 +++++ 3 files changed, 23 insertions(+) create mode 100644 tests/bugs170/sanity/DeclareAtType.java diff --git a/tests/bugs170/sanity/DeclareAtType.java b/tests/bugs170/sanity/DeclareAtType.java new file mode 100644 index 000000000..44f60b633 --- /dev/null +++ b/tests/bugs170/sanity/DeclareAtType.java @@ -0,0 +1,14 @@ +package foo; + +@interface MyAnnotation { +} + +public aspect DeclareAtType { + + declare @type : C : @MyAnnotation; + +} + +class C { + +} diff --git a/tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java b/tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java index 4fd141544..a7374e2fa 100644 --- a/tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java @@ -21,6 +21,10 @@ import org.aspectj.testing.XMLBasedAjcTestCase; */ public class Ajc170Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + public void testSanity1() { + runTest("sanity 1"); + } + public void testMissingImpl_363979() { runTest("missing impl"); } diff --git a/tests/src/org/aspectj/systemtest/ajc170/ajc170.xml b/tests/src/org/aspectj/systemtest/ajc170/ajc170.xml index 45287ceb3..a0822caaf 100644 --- a/tests/src/org/aspectj/systemtest/ajc170/ajc170.xml +++ b/tests/src/org/aspectj/systemtest/ajc170/ajc170.xml @@ -2,6 +2,11 @@ + + + + + -- 2.39.5