summaryrefslogtreecommitdiffstats
path: root/ajde/testdata
diff options
context:
space:
mode:
authoracolyer <acolyer>2003-03-27 15:43:01 +0000
committeracolyer <acolyer>2003-03-27 15:43:01 +0000
commit989aaf7855fdb2e4f176d6e7b32a3bd0131ee515 (patch)
treeb651d929c728d24382b2f606e106391e8c8e8284 /ajde/testdata
parent56cc4f27afaf591f8cebb2450513cc6eb7d51299 (diff)
downloadaspectj-989aaf7855fdb2e4f176d6e7b32a3bd0131ee515.tar.gz
aspectj-989aaf7855fdb2e4f176d6e7b32a3bd0131ee515.zip
Extended test case support to allow verification of compiler messages produced
during compilation. Added test case for bug 33474 (full source location for declare warning messages).
Diffstat (limited to 'ajde/testdata')
-rw-r--r--ajde/testdata/examples/declare-warning/all.lst2
-rw-r--r--ajde/testdata/examples/declare-warning/apackage/InitCatcher.java8
-rw-r--r--ajde/testdata/examples/declare-warning/apackage/SomeClass.java12
3 files changed, 22 insertions, 0 deletions
diff --git a/ajde/testdata/examples/declare-warning/all.lst b/ajde/testdata/examples/declare-warning/all.lst
new file mode 100644
index 000000000..e169a842c
--- /dev/null
+++ b/ajde/testdata/examples/declare-warning/all.lst
@@ -0,0 +1,2 @@
+apackage/InitCatcher.java
+apackage/SomeClass.java
diff --git a/ajde/testdata/examples/declare-warning/apackage/InitCatcher.java b/ajde/testdata/examples/declare-warning/apackage/InitCatcher.java
new file mode 100644
index 000000000..ac34d3c0c
--- /dev/null
+++ b/ajde/testdata/examples/declare-warning/apackage/InitCatcher.java
@@ -0,0 +1,8 @@
+package apackage;
+
+public aspect InitCatcher {
+
+ declare warning: call(* *.init(..)) :
+ "Please don't call init methods"; //$NON-NLS-1$
+
+} \ No newline at end of file
diff --git a/ajde/testdata/examples/declare-warning/apackage/SomeClass.java b/ajde/testdata/examples/declare-warning/apackage/SomeClass.java
new file mode 100644
index 000000000..eff26d5c8
--- /dev/null
+++ b/ajde/testdata/examples/declare-warning/apackage/SomeClass.java
@@ -0,0 +1,12 @@
+package apackage;
+
+public class SomeClass {
+
+ public SomeClass() {
+ init(); // line 6
+ }
+
+ public void init() {
+ }
+
+} \ No newline at end of file