aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2009-01-29 23:56:35 +0000
committeraclement <aclement>2009-01-29 23:56:35 +0000
commit69a79e20f60efdc344a0a354b254fe72019907f5 (patch)
treeee7b5a5303e5d20fa20a4d3663804f20a8e2d8a7
parent85eed1b16732e2448a4d5089ce46e8fe0530e4b0 (diff)
downloadaspectj-69a79e20f60efdc344a0a354b254fe72019907f5.tar.gz
aspectj-69a79e20f60efdc344a0a354b254fe72019907f5.zip
256779: test and fix: decp lazy resolution in anno style
-rw-r--r--tests/bugs164/pr256779/OtherAspect.java12
-rw-r--r--tests/bugs164/pr256779/ThisAspect.java12
-rw-r--r--tests/bugs164/pr256779/aop.xml7
-rw-r--r--tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java4
-rw-r--r--tests/src/org/aspectj/systemtest/ajc164/ajc164.xml6
5 files changed, 41 insertions, 0 deletions
diff --git a/tests/bugs164/pr256779/OtherAspect.java b/tests/bugs164/pr256779/OtherAspect.java
new file mode 100644
index 000000000..05aa0ff74
--- /dev/null
+++ b/tests/bugs164/pr256779/OtherAspect.java
@@ -0,0 +1,12 @@
+package com;
+
+import org.aspectj.lang.annotation.*;
+
+
+@Aspect
+public class OtherAspect {
+ @Before("execution(* *(..))")
+ public void b() {}
+ //...
+}
+
diff --git a/tests/bugs164/pr256779/ThisAspect.java b/tests/bugs164/pr256779/ThisAspect.java
new file mode 100644
index 000000000..c07001fa2
--- /dev/null
+++ b/tests/bugs164/pr256779/ThisAspect.java
@@ -0,0 +1,12 @@
+package com;
+
+import org.aspectj.lang.annotation.*;
+
+@DeclarePrecedence("com.ThisAspect, com.OtherAspect")
+@Aspect public class ThisAspect {
+@Before("execution(* *(..))")
+public void b() {}
+ //...
+ public static void main(String[] argv) {}
+}
+
diff --git a/tests/bugs164/pr256779/aop.xml b/tests/bugs164/pr256779/aop.xml
new file mode 100644
index 000000000..8c2780304
--- /dev/null
+++ b/tests/bugs164/pr256779/aop.xml
@@ -0,0 +1,7 @@
+<aspectj>
+<aspects>
+<aspect name="com.OtherAspect"/>
+<aspect name="com.ThisAspect"/>
+</aspects>
+</aspectj>
+
diff --git a/tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java b/tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java
index 492ff9d12..2af9fd2ac 100644
--- a/tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc164/Ajc164Tests.java
@@ -24,6 +24,10 @@ import org.aspectj.testing.XMLBasedAjcTestCase;
public class Ajc164Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
+ public void testAnnoDecprecedence_pr256779() {
+ runTest("anno decprecedence");
+ }
+
//
public void testBrokenLVT_pr194314_1() throws Exception {
runTest("broken lvt - 1");
diff --git a/tests/src/org/aspectj/systemtest/ajc164/ajc164.xml b/tests/src/org/aspectj/systemtest/ajc164/ajc164.xml
index 1e0837adf..f2ff1af9e 100644
--- a/tests/src/org/aspectj/systemtest/ajc164/ajc164.xml
+++ b/tests/src/org/aspectj/systemtest/ajc164/ajc164.xml
@@ -2,6 +2,12 @@
<suite>
+ <ajc-test dir="bugs164/pr256779" title="anno decprecedence">
+ <compile files="ThisAspect.java OtherAspect.java" options="-1.5"/>
+ <run class="com.ThisAspect" ltw="aop.xml"/>
+
+ </ajc-test>
+
<ajc-test dir="bugs164/pr194314" title="broken lvt - 1">
<compile files="Service.java IService.java Main.java ServiceInterceptor.java" options="-1.5"/>