summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2009-11-19 17:01:23 +0000
committeraclement <aclement>2009-11-19 17:01:23 +0000
commitf5cd023f4d97a9be2507f2e033cb76b0aa41d50b (patch)
treea769cbf682379d96baca39e294d10480e0c88bf3
parentdc53b77e2494a2960423314a0ea7425a6c0eff7d (diff)
downloadaspectj-f5cd023f4d97a9be2507f2e033cb76b0aa41d50b.tar.gz
aspectj-f5cd023f4d97a9be2507f2e033cb76b0aa41d50b.zip
new intertype syntax: testcode
-rw-r--r--tests/features167/intertype/Five.java11
-rw-r--r--tests/features167/intertype/Four.java10
-rw-r--r--tests/features167/intertype/Simple.java6
-rw-r--r--tests/features167/intertype/Six.java13
-rw-r--r--tests/features167/intertype/Three.java9
-rw-r--r--tests/features167/intertype/Two.java7
6 files changed, 56 insertions, 0 deletions
diff --git a/tests/features167/intertype/Five.java b/tests/features167/intertype/Five.java
new file mode 100644
index 000000000..ac9f3eb77
--- /dev/null
+++ b/tests/features167/intertype/Five.java
@@ -0,0 +1,11 @@
+aspect Five {
+ intertype Target {
+ int i = 5;
+ }
+ public static void main(String[]argv) {
+ Target target = new Target();
+ System.out.println(target.i);
+ }
+}
+
+class Target {}
diff --git a/tests/features167/intertype/Four.java b/tests/features167/intertype/Four.java
new file mode 100644
index 000000000..ecdbf117d
--- /dev/null
+++ b/tests/features167/intertype/Four.java
@@ -0,0 +1,10 @@
+aspect X {
+ intertype Target {
+ int i = 5;
+ }
+ public static void main(String[]argv) {
+ Target target = new Target();
+ }
+}
+
+class Target {}
diff --git a/tests/features167/intertype/Simple.java b/tests/features167/intertype/Simple.java
new file mode 100644
index 000000000..88f6b63a8
--- /dev/null
+++ b/tests/features167/intertype/Simple.java
@@ -0,0 +1,6 @@
+aspect X {
+ intertype Target {
+ }
+}
+
+class Target {}
diff --git a/tests/features167/intertype/Six.java b/tests/features167/intertype/Six.java
new file mode 100644
index 000000000..2d2282d94
--- /dev/null
+++ b/tests/features167/intertype/Six.java
@@ -0,0 +1,13 @@
+aspect Six {
+ intertype Target {
+ int i = 5;
+ String j = "hello";
+ }
+ public static void main(String[]argv) {
+ Target target = new Target();
+ System.out.println(target.j);
+ System.out.println(target.i);
+ }
+}
+
+class Target {}
diff --git a/tests/features167/intertype/Three.java b/tests/features167/intertype/Three.java
new file mode 100644
index 000000000..b824cb92d
--- /dev/null
+++ b/tests/features167/intertype/Three.java
@@ -0,0 +1,9 @@
+aspect X {
+ intertype Target {
+ int i = 5;
+ }
+ public static void main(String[]argv) {
+ }
+}
+
+class Target {}
diff --git a/tests/features167/intertype/Two.java b/tests/features167/intertype/Two.java
new file mode 100644
index 000000000..3e96cb36b
--- /dev/null
+++ b/tests/features167/intertype/Two.java
@@ -0,0 +1,7 @@
+aspect X {
+ intertype Target {
+ int i = 5;
+ }
+}
+
+class Target {}