aboutsummaryrefslogtreecommitdiffstats
path: root/asm/testdata
diff options
context:
space:
mode:
authorwisberg <wisberg>2002-12-16 17:58:19 +0000
committerwisberg <wisberg>2002-12-16 17:58:19 +0000
commitd842c4f1139629c1f062b74ba818d233b2c31043 (patch)
tree842d3871620bc0eb60edcd95e55804d67e0f61fa /asm/testdata
parent3ce247199704eae6b2c92c6e38c69584e3250c52 (diff)
downloadaspectj-d842c4f1139629c1f062b74ba818d233b2c31043.tar.gz
aspectj-d842c4f1139629c1f062b74ba818d233b2c31043.zip
initial version
Diffstat (limited to 'asm/testdata')
-rw-r--r--asm/testdata/simple-coverage/Foo.java13
-rw-r--r--asm/testdata/simple-coverage/Good.java57
-rw-r--r--asm/testdata/simple-coverage/pkg1/Bar.java6
-rw-r--r--asm/testdata/simple-coverage/pkg1/subpkg/Bar.java6
4 files changed, 82 insertions, 0 deletions
diff --git a/asm/testdata/simple-coverage/Foo.java b/asm/testdata/simple-coverage/Foo.java
new file mode 100644
index 000000000..b89aa8cc1
--- /dev/null
+++ b/asm/testdata/simple-coverage/Foo.java
@@ -0,0 +1,13 @@
+public class Foo {
+// int x = b;
+ static class Mumble {
+ String name;
+
+ class Gumble {
+ int b;
+ }
+ }
+ //aspect MemberAspect { }
+
+ interface MemberI { }
+}
diff --git a/asm/testdata/simple-coverage/Good.java b/asm/testdata/simple-coverage/Good.java
new file mode 100644
index 000000000..d447300c2
--- /dev/null
+++ b/asm/testdata/simple-coverage/Good.java
@@ -0,0 +1,57 @@
+
+import java.util.*;
+import java.io.IOException;
+
+public class Good {
+
+ public static String foo;
+ public int publicA = 1;
+ private int privateA = 2;
+ protected int protectedA = 3;
+ int packageA = 4;
+
+ { publicA = 5; }
+
+ static { foo = "hi"; }
+
+ public Good() { }
+
+ public void foo() {
+ int i = 0;
+ i += 1;
+ i += 2;
+ }
+
+ { publicA = 6; }
+}
+
+aspect A {
+ int pkg1.Bar.interTypeField = 0;
+ //void Good.interTypeMethod() { }
+
+ int j;
+
+ before(): execution(void Good.foo()) {
+ System.out.println("");
+ }
+
+ public void m() { }
+
+ pointcut all(): call(* *(..));
+
+ after(): all() { System.out.println(""); }
+
+ declare warning: call(* mumble*(..)): "warning";
+ declare error: call(* gumble*(..)): "error";
+// declare parents: Point extends java.io.Serializable;
+// declare parents: Point implements java.util.Observable;
+// declare soft: Point: call(* *(..));
+}
+
+interface I { }
+
+
+//privileged aspect PrivilegedAspect { }
+
+
+
diff --git a/asm/testdata/simple-coverage/pkg1/Bar.java b/asm/testdata/simple-coverage/pkg1/Bar.java
new file mode 100644
index 000000000..13b71eecf
--- /dev/null
+++ b/asm/testdata/simple-coverage/pkg1/Bar.java
@@ -0,0 +1,6 @@
+
+package pkg1;
+
+public class Bar {
+// int x = b;
+}
diff --git a/asm/testdata/simple-coverage/pkg1/subpkg/Bar.java b/asm/testdata/simple-coverage/pkg1/subpkg/Bar.java
new file mode 100644
index 000000000..958343755
--- /dev/null
+++ b/asm/testdata/simple-coverage/pkg1/subpkg/Bar.java
@@ -0,0 +1,6 @@
+
+package pkg1.subpkg;
+
+public class Bar {
+// int x = b;
+}