From: aclement Date: Mon, 29 Sep 2008 19:16:22 +0000 (+0000) Subject: 247683: test and fix: annotations on array delegates X-Git-Tag: V1_6_2~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3fffdb9f5afd0f4b674c2942872663366738260b;p=aspectj.git 247683: test and fix: annotations on array delegates --- diff --git a/tests/bugs162/pr247683/A.java b/tests/bugs162/pr247683/A.java new file mode 100644 index 000000000..e930893ca --- /dev/null +++ b/tests/bugs162/pr247683/A.java @@ -0,0 +1,12 @@ +import java.lang.annotation.*; + +@Retention(RetentionPolicy.RUNTIME) +@interface I {} + +aspect X { + declare warning: execution(* *(@(@I *) *)): ""; +} + +public class A { + public void foo(@I boolean[] bs) {} +} diff --git a/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java b/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java index 268e2224f..5ac0d8a10 100644 --- a/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java @@ -11,11 +11,9 @@ package org.aspectj.systemtest.ajc162; import java.io.File; -import java.io.PrintWriter; import junit.framework.Test; -import org.aspectj.asm.AsmManager; import org.aspectj.testing.XMLBasedAjcTestCase; public class Ajc162Tests extends org.aspectj.testing.XMLBasedAjcTestCase { @@ -43,19 +41,19 @@ public class Ajc162Tests extends org.aspectj.testing.XMLBasedAjcTestCase { // what I want for the hid is: // "[Asp.class}Asp&before" -/* - public void testBinaryAspectModeling() throws Exception { - runTest("binary aspects model"); - AsmManager.dumptree(AsmManager.getDefault().getHierarchy().getRoot(), 0); - PrintWriter pw = new PrintWriter(System.out); - AsmManager.getDefault().dumprels(pw); - pw.flush(); - } -*/ + /* + * public void testBinaryAspectModeling() throws Exception { runTest("binary aspects model"); + * AsmManager.dumptree(AsmManager.getDefault().getHierarchy().getRoot(), 0); PrintWriter pw = new PrintWriter(System.out); + * AsmManager.getDefault().dumprels(pw); pw.flush(); } + */ public void testPerClause() { runTest("ltw perclause"); } + public void testNullDelegateForArray_pr247683() { + runTest("null delegate for array"); + } + public void testPerClause2() { runTest("ltw perclause - 2"); } @@ -167,7 +165,18 @@ public class Ajc162Tests extends org.aspectj.testing.XMLBasedAjcTestCase { } // public void testParamAnnosPipelining_pr241847() { runTest("param annos pipelining");} - // public void testParamAnnoInner_pr241861() { runTest("param annotation inner class"); } + // public void testParamAnnoInner_pr241861() { + // runTest("param annotation inner class"); + // } + // + // public void testParamAnnoInner_pr241861_2() { + // runTest("param annotation inner class - 2"); + // } + // + // public void testParamAnnoInner_pr241861_3() { + // runTest("param annotation inner class - 3"); + // } + public void testAnnotationDecp_pr239441() { runTest("annotation decp"); } diff --git a/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml b/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml index c1054ee34..bc1b177ed 100644 --- a/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml +++ b/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml @@ -3,6 +3,11 @@ + + + + + @@ -240,6 +245,18 @@ + + + + + + + + + + + +