summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2010-06-11 16:35:49 +0000
committeraclement <aclement>2010-06-11 16:35:49 +0000
commit9f636c13c87ace2bf0405061f8ce99bcfc6dc649 (patch)
tree56d4371fc5170becea5c8f3cb2a2bfd0837fcbef
parentb58d2c1d47be6eef0d017e45a49c27946bce4b84 (diff)
downloadaspectj-9f636c13c87ace2bf0405061f8ce99bcfc6dc649.tar.gz
aspectj-9f636c13c87ace2bf0405061f8ce99bcfc6dc649.zip
itd inners: testcode
-rw-r--r--tests/multiIncremental/prInner/base/src/a/b/c/RelatedType.java7
-rw-r--r--tests/multiIncremental/prInner/base/src/a/b/c/Runner.java11
-rw-r--r--tests/multiIncremental/prInner/base/src/a/b/c/Underscorer.aj17
-rw-r--r--tests/multiIncremental/prInner/base/src/a/b/c/Vote.java9
-rw-r--r--tests/multiIncremental/prInner/inc1/src/a/b/c/Vote.java10
-rw-r--r--tests/multiIncremental/prInner2/base/src/Aspect1.java7
-rw-r--r--tests/multiIncremental/prInner2/base/src/Aspect2.java3
-rw-r--r--tests/multiIncremental/prInner2/base/src/Vote.java6
-rw-r--r--tests/multiIncremental/prInner2/inc1/src/Aspect1.java7
-rw-r--r--tests/multiIncremental/prInner2/inc2/src/Aspect2.java3
-rw-r--r--tests/multiIncremental/prInner2/inc3/src/Vote.java2
11 files changed, 82 insertions, 0 deletions
diff --git a/tests/multiIncremental/prInner/base/src/a/b/c/RelatedType.java b/tests/multiIncremental/prInner/base/src/a/b/c/RelatedType.java
new file mode 100644
index 000000000..a9c828719
--- /dev/null
+++ b/tests/multiIncremental/prInner/base/src/a/b/c/RelatedType.java
@@ -0,0 +1,7 @@
+package a.b.c;
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+public @interface RelatedType {
+ Class<?> value();
+}
diff --git a/tests/multiIncremental/prInner/base/src/a/b/c/Runner.java b/tests/multiIncremental/prInner/base/src/a/b/c/Runner.java
new file mode 100644
index 000000000..f9bd75421
--- /dev/null
+++ b/tests/multiIncremental/prInner/base/src/a/b/c/Runner.java
@@ -0,0 +1,11 @@
+package a.b.c;
+
+@RelatedType(value=Vote._.choice.class)
+public class Runner {
+ public static void main(String[]argv) {
+ Vote._ v = new Vote._("wibble");
+ System.out.println(v.getString());
+ System.out.println(Runner.class.getDeclaredAnnotations()[0]);
+ }
+}
+
diff --git a/tests/multiIncremental/prInner/base/src/a/b/c/Underscorer.aj b/tests/multiIncremental/prInner/base/src/a/b/c/Underscorer.aj
new file mode 100644
index 000000000..93ca709d6
--- /dev/null
+++ b/tests/multiIncremental/prInner/base/src/a/b/c/Underscorer.aj
@@ -0,0 +1,17 @@
+package a.b.c;
+
+public aspect Underscorer {
+ public int Vote.i = 5;
+ public String Vote.zzz() { return "abc"; }
+ public static class Vote._ {
+ private String string;
+ public static class choice {}
+ public Ip ip = new Ip();
+ public _(String string) { this.string = string; }
+ public String getString() { return this.string; }
+ public class Ip {
+ public String fieldName() { return "ip"; }
+ public Class<Vote> type() { return Vote.class; }
+ }
+ }
+}
diff --git a/tests/multiIncremental/prInner/base/src/a/b/c/Vote.java b/tests/multiIncremental/prInner/base/src/a/b/c/Vote.java
new file mode 100644
index 000000000..8d22bdc7a
--- /dev/null
+++ b/tests/multiIncremental/prInner/base/src/a/b/c/Vote.java
@@ -0,0 +1,9 @@
+package a.b.c;
+
+public class Vote {
+
+ public static Vote._ _() { return new Vote._(null); }
+
+ static class RealInner {}
+
+}
diff --git a/tests/multiIncremental/prInner/inc1/src/a/b/c/Vote.java b/tests/multiIncremental/prInner/inc1/src/a/b/c/Vote.java
new file mode 100644
index 000000000..64a0630f5
--- /dev/null
+++ b/tests/multiIncremental/prInner/inc1/src/a/b/c/Vote.java
@@ -0,0 +1,10 @@
+package a.b.c;
+
+public class Vote {
+
+ public static Vote._ _() { return new Vote._(null); }
+
+
+ static class RealInner {}
+
+}
diff --git a/tests/multiIncremental/prInner2/base/src/Aspect1.java b/tests/multiIncremental/prInner2/base/src/Aspect1.java
new file mode 100644
index 000000000..99cd1794c
--- /dev/null
+++ b/tests/multiIncremental/prInner2/base/src/Aspect1.java
@@ -0,0 +1,7 @@
+aspect Aspect1 {
+ public static class Vote._ {
+ private String s;
+ public _() {s="abc";}
+ public _(String string) {s=string;}
+ }
+}
diff --git a/tests/multiIncremental/prInner2/base/src/Aspect2.java b/tests/multiIncremental/prInner2/base/src/Aspect2.java
new file mode 100644
index 000000000..15c14c512
--- /dev/null
+++ b/tests/multiIncremental/prInner2/base/src/Aspect2.java
@@ -0,0 +1,3 @@
+aspect Aspect2 {
+ public Vote._ _() { return new Vote._("abc"); }
+}
diff --git a/tests/multiIncremental/prInner2/base/src/Vote.java b/tests/multiIncremental/prInner2/base/src/Vote.java
new file mode 100644
index 000000000..bd376d6c1
--- /dev/null
+++ b/tests/multiIncremental/prInner2/base/src/Vote.java
@@ -0,0 +1,6 @@
+public class Vote {
+ public static void main(String []argv) {
+ _ o = new Vote._();
+ _ y = new _("abc");
+ }
+}
diff --git a/tests/multiIncremental/prInner2/inc1/src/Aspect1.java b/tests/multiIncremental/prInner2/inc1/src/Aspect1.java
new file mode 100644
index 000000000..99cd1794c
--- /dev/null
+++ b/tests/multiIncremental/prInner2/inc1/src/Aspect1.java
@@ -0,0 +1,7 @@
+aspect Aspect1 {
+ public static class Vote._ {
+ private String s;
+ public _() {s="abc";}
+ public _(String string) {s=string;}
+ }
+}
diff --git a/tests/multiIncremental/prInner2/inc2/src/Aspect2.java b/tests/multiIncremental/prInner2/inc2/src/Aspect2.java
new file mode 100644
index 000000000..15c14c512
--- /dev/null
+++ b/tests/multiIncremental/prInner2/inc2/src/Aspect2.java
@@ -0,0 +1,3 @@
+aspect Aspect2 {
+ public Vote._ _() { return new Vote._("abc"); }
+}
diff --git a/tests/multiIncremental/prInner2/inc3/src/Vote.java b/tests/multiIncremental/prInner2/inc3/src/Vote.java
new file mode 100644
index 000000000..15050d24e
--- /dev/null
+++ b/tests/multiIncremental/prInner2/inc3/src/Vote.java
@@ -0,0 +1,2 @@
+public class Vote {
+}