From: Andy Clement Date: Thu, 16 Aug 2012 18:05:05 +0000 (-0700) Subject: testcode 356594 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3875260e02d5ac312c35ff034d7b75407b52820c;p=aspectj.git testcode 356594 --- diff --git a/tests/bugs171/pr356594/Code.aj b/tests/bugs171/pr356594/Code.aj new file mode 100644 index 000000000..4dd38ea21 --- /dev/null +++ b/tests/bugs171/pr356594/Code.aj @@ -0,0 +1,14 @@ +import java.lang.annotation.*; + +@Retention(RetentionPolicy.RUNTIME) +@interface Foo {} +@Retention(RetentionPolicy.RUNTIME) +@interface Bar {} + +class C { +} + +aspect X { +declare @type: C: @Foo @Bar; +} + diff --git a/tests/bugs171/pr384398_2/A$InnerA.class b/tests/bugs171/pr384398_2/A$InnerA.class new file mode 100644 index 000000000..649091960 Binary files /dev/null and b/tests/bugs171/pr384398_2/A$InnerA.class differ diff --git a/tests/bugs171/pr384398_2/A.class b/tests/bugs171/pr384398_2/A.class new file mode 100644 index 000000000..8a42b52b9 Binary files /dev/null and b/tests/bugs171/pr384398_2/A.class differ diff --git a/tests/bugs171/pr384398_2/B.class b/tests/bugs171/pr384398_2/B.class new file mode 100644 index 000000000..3296bd351 Binary files /dev/null and b/tests/bugs171/pr384398_2/B.class differ diff --git a/tests/src/org/aspectj/systemtest/AllTests17.java b/tests/src/org/aspectj/systemtest/AllTests17.java index f026ae59a..37a02c350 100644 --- a/tests/src/org/aspectj/systemtest/AllTests17.java +++ b/tests/src/org/aspectj/systemtest/AllTests17.java @@ -7,12 +7,14 @@ import junit.framework.Test; import junit.framework.TestSuite; import org.aspectj.systemtest.ajc170.AllTestsAspectJ170; +import org.aspectj.systemtest.ajc171.AllTestsAspectJ171; public class AllTests17 { public static Test suite() { TestSuite suite = new TestSuite("AspectJ System Test Suite - JDK 1.7"); // $JUnit-BEGIN$ + suite.addTest(AllTestsAspectJ171.suite()); suite.addTest(AllTestsAspectJ170.suite()); suite.addTest(AllTests16.suite()); suite.addTest(AllTests15.suite()); diff --git a/tests/src/org/aspectj/systemtest/ajc171/Ajc171Tests.java b/tests/src/org/aspectj/systemtest/ajc171/Ajc171Tests.java new file mode 100644 index 000000000..344a11ea3 --- /dev/null +++ b/tests/src/org/aspectj/systemtest/ajc171/Ajc171Tests.java @@ -0,0 +1,39 @@ +/******************************************************************************* + * Copyright (c) 2008-2012 Contributors + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Andy Clement - initial API and implementation + *******************************************************************************/ +package org.aspectj.systemtest.ajc171; + +import java.io.File; + +import junit.framework.Test; + +import org.aspectj.testing.XMLBasedAjcTestCase; + +/** + * @author Andy Clement + */ +public class Ajc171Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + +// public void testMultipleAnnos_356594() { +// runTest("multiple annos 1"); +// } + + // --- + + public static Test suite() { + return XMLBasedAjcTestCase.loadSuite(Ajc171Tests.class); + } + + @Override + protected File getSpecFile() { + return new File("../tests/src/org/aspectj/systemtest/ajc171/ajc171.xml"); + } + +} diff --git a/tests/src/org/aspectj/systemtest/ajc171/AllTestsAspectJ171.java b/tests/src/org/aspectj/systemtest/ajc171/AllTestsAspectJ171.java new file mode 100644 index 000000000..78e321b84 --- /dev/null +++ b/tests/src/org/aspectj/systemtest/ajc171/AllTestsAspectJ171.java @@ -0,0 +1,25 @@ +/******************************************************************************* + * Copyright (c) 2008 Contributors + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Andy Clement - initial API and implementation + *******************************************************************************/ +package org.aspectj.systemtest.ajc171; + +import junit.framework.Test; +import junit.framework.TestSuite; + +public class AllTestsAspectJ171 { + + public static Test suite() { + TestSuite suite = new TestSuite("AspectJ 1.7.1 tests"); + // $JUnit-BEGIN$ + suite.addTest(Ajc171Tests.suite()); + // $JUnit-END$ + return suite; + } +} diff --git a/tests/src/org/aspectj/systemtest/ajc171/ajc171.xml b/tests/src/org/aspectj/systemtest/ajc171/ajc171.xml new file mode 100644 index 000000000..981820a62 --- /dev/null +++ b/tests/src/org/aspectj/systemtest/ajc171/ajc171.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + +