summaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authoraclement <aclement>2006-05-17 12:15:23 +0000
committeraclement <aclement>2006-05-17 12:15:23 +0000
commit2c5fd746cb28ed8ad3990229ea2f861bbb815821 (patch)
tree73549d76468f5fc1135ebb915f035206c90b5f87 /tests/src
parent5f6a6b12c560f80dd720a943c4c63cf8dc182cc3 (diff)
downloadaspectj-2c5fd746cb28ed8ad3990229ea2f861bbb815821.tar.gz
aspectj-2c5fd746cb28ed8ad3990229ea2f861bbb815821.zip
proper testcode for 135865
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java3
-rw-r--r--tests/src/org/aspectj/systemtest/ajc152/ajc152.xml16
2 files changed, 16 insertions, 3 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java b/tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java
index 43d163ae4..178d54058 100644
--- a/tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java
@@ -17,7 +17,8 @@ import org.aspectj.testing.XMLBasedAjcTestCase;
public class Ajc152Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
-// public void testMisbehavingDeclareAnnotation_pr135865() { runTest("misbehaving declare annotation");}
+ //public void testMisbehavingDeclareAnnotation_pr135865() { runTest("misbehaving declare annotation");}
+ //public void testMisbehavingDeclareAnnotation_pr135865_2() { runTest("misbehaving declare annotation - 2");}
public void testCompletelyBrokenAopConcretization_pr142165_1() { runTest("broken concretization");}
public void testCompletelyBrokenAopConcretization_pr142165_2() { runTest("broken concretization - 2");}
public void testCompletelyBrokenAopConcretization_pr142165_3() { runTest("broken concretization - 3");}
diff --git a/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml b/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml
index eafefc2f0..6407865fb 100644
--- a/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml
+++ b/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml
@@ -16,7 +16,20 @@
</ajc-test>
<ajc-test dir="bugs152/pr135865" title="misbehaving declare annotation">
- <compile files="B.java,A.java" options="-1.5">
+ <compile files="B.java,A.java" options="-1.5 -Xlint:ignore">
+ <!--message kind="weave" text="Join point 'method-call(void B.foo())' in Type 'A' (A.java:32) advised by before advice from 'Aspect' (A.java:22) [with runtime test]"/>
+ <message kind="weave" text="Join point 'method-call(void A.foo())' in Type 'A' (A.java:33) advised by before advice from 'Aspect' (A.java:22) [with runtime test]"/>
+ <message kind="weave" text="' void B.goo()' (A.java:7) is annotated with @Ann method annotation from 'Aspect' (A.java:27)"/-->
+ </compile>
+ <run class="A">
+ <stdout>
+ <line text="Join point: call(void B.foo())"/>
+ </stdout>
+ </run>
+ </ajc-test>
+
+ <ajc-test dir="bugs152/pr135865" title="misbehaving declare annotation - 2">
+ <compile files="A.java,B.java" options="-1.5 -Xlint:ignore">
<!--message kind="weave" text="Join point 'method-call(void B.foo())' in Type 'A' (A.java:32) advised by before advice from 'Aspect' (A.java:22) [with runtime test]"/>
<message kind="weave" text="Join point 'method-call(void A.foo())' in Type 'A' (A.java:33) advised by before advice from 'Aspect' (A.java:22) [with runtime test]"/>
<message kind="weave" text="' void B.goo()' (A.java:7) is annotated with @Ann method annotation from 'Aspect' (A.java:27)"/-->
@@ -24,7 +37,6 @@
<run class="A">
<stdout>
<line text="Join point: call(void B.foo())"/>
- <line text="Join point: call(void B.goo())"/>
</stdout>
</run>
</ajc-test>