aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authoraclement <aclement>2010-08-10 23:48:19 +0000
committeraclement <aclement>2010-08-10 23:48:19 +0000
commit36c91148128afe51181cea40c70866e6e21dd64e (patch)
tree6a40a3709148cb363fa175f9407abeaad3791a57 /tests/src
parentd266e547aca31ae96fd8d469620b036ae9430989 (diff)
downloadaspectj-36c91148128afe51181cea40c70866e6e21dd64e.tar.gz
aspectj-36c91148128afe51181cea40c70866e6e21dd64e.zip
322272: declare annotation for incremental compilation when used through abstract aspect.
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc1610/Ajc1610Tests.java11
-rw-r--r--tests/src/org/aspectj/systemtest/ajc1610/ajc1610.xml22
2 files changed, 31 insertions, 2 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc1610/Ajc1610Tests.java b/tests/src/org/aspectj/systemtest/ajc1610/Ajc1610Tests.java
index 04641aaaf..061be391b 100644
--- a/tests/src/org/aspectj/systemtest/ajc1610/Ajc1610Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc1610/Ajc1610Tests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008 Contributors
+ * 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
@@ -18,7 +18,14 @@ import org.aspectj.testing.XMLBasedAjcTestCase;
public class Ajc1610Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
- // Interesting new behaviour on AspectJ 1.6.9 - probably due to initial inner type changes.
+ public void testAbstractAspectAndDeclares_322272_2() {
+ runTest("abstract aspects and declares - 2");
+ }
+
+ public void testAbstractAspectAndDeclares_322272() {
+ runTest("abstract aspects and declares");
+ }
+ // Interesting new behaviour on AspectJ 1.6.9 - probably due to initial inner type changes.
// Looks a real error (creating two annotations the same on a type is a bad thing)
// public void testDuplicateAnnotations() {
// runTest("duplicate annotation");
diff --git a/tests/src/org/aspectj/systemtest/ajc1610/ajc1610.xml b/tests/src/org/aspectj/systemtest/ajc1610/ajc1610.xml
index c51060775..44b7c0eba 100644
--- a/tests/src/org/aspectj/systemtest/ajc1610/ajc1610.xml
+++ b/tests/src/org/aspectj/systemtest/ajc1610/ajc1610.xml
@@ -12,4 +12,26 @@
</compile>
</ajc-test>
+ <ajc-test dir="bugs1610/pr322272" title="abstract aspects and declares">
+ <compile files="Base.java" outjar="superaspect.jar" options="-1.5"/>
+ <compile files="F1.java" classpath="superaspect.jar" options="-1.5">
+ </compile>
+ <run class="F1">
+ <stdout>
+ <line text="@Anno()"/>
+ </stdout>
+ </run>
+ </ajc-test>
+
+ <ajc-test dir="bugs1610/pr322272" title="abstract aspects and declares - 2">
+ <compile files="Base2.java" outjar="superaspect.jar" options="-1.5"/>
+ <compile files="F2.java" classpath="superaspect.jar" options="-1.5">
+ </compile>
+ <run class="F2">
+ <stdout>
+ <line text="@Anno()"/>
+ </stdout>
+ </run>
+ </ajc-test>
+
</suite> \ No newline at end of file