aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndy Clement <aclement@gopivotal.com>2013-10-24 09:20:31 -0700
committerAndy Clement <aclement@gopivotal.com>2013-10-24 09:20:31 -0700
commit06f4b223d5a278ff956ee22c86849eca8b85c070 (patch)
tree59ad00069c386fa2d59a34becf7765ef5cb2938e /tests
parent9319e343d54a65bcfc4a8c19e4305147ce9e27b8 (diff)
downloadaspectj-06f4b223d5a278ff956ee22c86849eca8b85c070.tar.gz
aspectj-06f4b223d5a278ff956ee22c86849eca8b85c070.zip
wip ajdt marker issues with declare warning and itds on interfaces
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs174/ajdt_markers/Code.java20
-rw-r--r--tests/src/org/aspectj/systemtest/ajc174/Ajc174Tests.java6
-rw-r--r--tests/src/org/aspectj/systemtest/ajc174/ajc174.xml6
3 files changed, 32 insertions, 0 deletions
diff --git a/tests/bugs174/ajdt_markers/Code.java b/tests/bugs174/ajdt_markers/Code.java
new file mode 100644
index 000000000..b5b52c1e9
--- /dev/null
+++ b/tests/bugs174/ajdt_markers/Code.java
@@ -0,0 +1,20 @@
+public class Code extends A implements I {
+
+ public static void main(String[] argv) {
+ Code code = new Code();
+ code.am();
+ code.im();
+ }
+}
+
+class A {
+ public void am() {}
+}
+
+interface I {
+}
+
+aspect X {
+ public void I.im() {}
+ before(): call(* A+.*m(..)) {}
+}
diff --git a/tests/src/org/aspectj/systemtest/ajc174/Ajc174Tests.java b/tests/src/org/aspectj/systemtest/ajc174/Ajc174Tests.java
index e492c5646..e647532fd 100644
--- a/tests/src/org/aspectj/systemtest/ajc174/Ajc174Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc174/Ajc174Tests.java
@@ -21,6 +21,12 @@ import org.aspectj.testing.XMLBasedAjcTestCase;
*/
public class Ajc174Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
+/* wip
+ public void testAjdtMarkers() throws Exception {
+ runTest("ajdt markers");
+ }
+*/
+
public void testExtraInserts() throws Exception {
runTest("extra inserts");
}
diff --git a/tests/src/org/aspectj/systemtest/ajc174/ajc174.xml b/tests/src/org/aspectj/systemtest/ajc174/ajc174.xml
index 5440b4bad..2ee09c456 100644
--- a/tests/src/org/aspectj/systemtest/ajc174/ajc174.xml
+++ b/tests/src/org/aspectj/systemtest/ajc174/ajc174.xml
@@ -2,6 +2,12 @@
<suite>
+ <ajc-test dir="bugs174/ajdt_markers" title="ajdt markers">
+ <compile files="Code.java" options="-1.5 -showWeaveInfo">
+ </compile>
+ </ajc-test>
+
+
<ajc-test dir="bugs174/extra_inserts" title="extra inserts">
<compile files="Code.java" options="-1.5">
<message kind="warning" line="8" text="Call to foo made inside class Bar"/>