aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core/testdata
diff options
context:
space:
mode:
authoraclement <aclement>2004-08-23 13:40:31 +0000
committeraclement <aclement>2004-08-23 13:40:31 +0000
commitf5035234ee878003515413fee5e7e6bfa7a2228d (patch)
tree076109c08757dec1961f3899afac0fa2498475ef /org.aspectj.ajdt.core/testdata
parentd0be7b851b7bcedce43ab31cc307f44ebf0a2f2e (diff)
downloadaspectj-f5035234ee878003515413fee5e7e6bfa7a2228d.tar.gz
aspectj-f5035234ee878003515413fee5e7e6bfa7a2228d.zip
Matthews enhancement fix for Bugzilla Bug 72154 "Support for simple dump file"
+ Andy using it to capture 'cant find type' issues.
Diffstat (limited to 'org.aspectj.ajdt.core/testdata')
-rw-r--r--org.aspectj.ajdt.core/testdata/DumpTestCase/src/Aspect.aj6
-rw-r--r--org.aspectj.ajdt.core/testdata/DumpTestCase/src/DeclareError.aj6
-rw-r--r--org.aspectj.ajdt.core/testdata/DumpTestCase/src/DeclareWarning.aj5
-rw-r--r--org.aspectj.ajdt.core/testdata/DumpTestCase/src/HelloWorld.java6
-rw-r--r--org.aspectj.ajdt.core/testdata/DumpTestCase/src/Pointcuts.aj5
5 files changed, 28 insertions, 0 deletions
diff --git a/org.aspectj.ajdt.core/testdata/DumpTestCase/src/Aspect.aj b/org.aspectj.ajdt.core/testdata/DumpTestCase/src/Aspect.aj
new file mode 100644
index 000000000..94b3bf683
--- /dev/null
+++ b/org.aspectj.ajdt.core/testdata/DumpTestCase/src/Aspect.aj
@@ -0,0 +1,6 @@
+public aspect Aspect {
+
+ after () returning : Pointcuts.main () && within(HelloWorld) {
+ System.out.println(thisJoinPoint);
+ }
+}
diff --git a/org.aspectj.ajdt.core/testdata/DumpTestCase/src/DeclareError.aj b/org.aspectj.ajdt.core/testdata/DumpTestCase/src/DeclareError.aj
new file mode 100644
index 000000000..7a1fad261
--- /dev/null
+++ b/org.aspectj.ajdt.core/testdata/DumpTestCase/src/DeclareError.aj
@@ -0,0 +1,6 @@
+public aspect DeclareError {
+
+ declare error : Pointcuts.main() && within(HelloWorld) :
+ "main()";
+
+}
diff --git a/org.aspectj.ajdt.core/testdata/DumpTestCase/src/DeclareWarning.aj b/org.aspectj.ajdt.core/testdata/DumpTestCase/src/DeclareWarning.aj
new file mode 100644
index 000000000..7ba2b1f51
--- /dev/null
+++ b/org.aspectj.ajdt.core/testdata/DumpTestCase/src/DeclareWarning.aj
@@ -0,0 +1,5 @@
+public aspect DeclareWarning {
+
+ declare warning : Pointcuts.main() && within(HelloWorld) :
+ "main()";
+}
diff --git a/org.aspectj.ajdt.core/testdata/DumpTestCase/src/HelloWorld.java b/org.aspectj.ajdt.core/testdata/DumpTestCase/src/HelloWorld.java
new file mode 100644
index 000000000..37732b8d5
--- /dev/null
+++ b/org.aspectj.ajdt.core/testdata/DumpTestCase/src/HelloWorld.java
@@ -0,0 +1,6 @@
+public class HelloWorld {
+
+ public static void main(String[] args) {
+ System.out.println("Hello World!");
+ }
+}
diff --git a/org.aspectj.ajdt.core/testdata/DumpTestCase/src/Pointcuts.aj b/org.aspectj.ajdt.core/testdata/DumpTestCase/src/Pointcuts.aj
new file mode 100644
index 000000000..5b589abfd
--- /dev/null
+++ b/org.aspectj.ajdt.core/testdata/DumpTestCase/src/Pointcuts.aj
@@ -0,0 +1,5 @@
+public class Pointcuts {
+
+ public pointcut main () :
+ execution(void main(String[]));
+}