]> source.dussan.org Git - aspectj.git/commitdiff
itd inners: testcode
authoraclement <aclement>
Fri, 11 Jun 2010 16:35:49 +0000 (16:35 +0000)
committeraclement <aclement>
Fri, 11 Jun 2010 16:35:49 +0000 (16:35 +0000)
tests/multiIncremental/prInner/base/src/a/b/c/RelatedType.java [new file with mode: 0644]
tests/multiIncremental/prInner/base/src/a/b/c/Runner.java [new file with mode: 0644]
tests/multiIncremental/prInner/base/src/a/b/c/Underscorer.aj [new file with mode: 0644]
tests/multiIncremental/prInner/base/src/a/b/c/Vote.java [new file with mode: 0644]
tests/multiIncremental/prInner/inc1/src/a/b/c/Vote.java [new file with mode: 0644]
tests/multiIncremental/prInner2/base/src/Aspect1.java [new file with mode: 0644]
tests/multiIncremental/prInner2/base/src/Aspect2.java [new file with mode: 0644]
tests/multiIncremental/prInner2/base/src/Vote.java [new file with mode: 0644]
tests/multiIncremental/prInner2/inc1/src/Aspect1.java [new file with mode: 0644]
tests/multiIncremental/prInner2/inc2/src/Aspect2.java [new file with mode: 0644]
tests/multiIncremental/prInner2/inc3/src/Vote.java [new file with mode: 0644]

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 (file)
index 0000000..a9c8287
--- /dev/null
@@ -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 (file)
index 0000000..f9bd754
--- /dev/null
@@ -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 (file)
index 0000000..93ca709
--- /dev/null
@@ -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 (file)
index 0000000..8d22bdc
--- /dev/null
@@ -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 (file)
index 0000000..64a0630
--- /dev/null
@@ -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 (file)
index 0000000..99cd179
--- /dev/null
@@ -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 (file)
index 0000000..15c14c5
--- /dev/null
@@ -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 (file)
index 0000000..bd376d6
--- /dev/null
@@ -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 (file)
index 0000000..99cd179
--- /dev/null
@@ -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 (file)
index 0000000..15c14c5
--- /dev/null
@@ -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 (file)
index 0000000..15050d2
--- /dev/null
@@ -0,0 +1,2 @@
+public class Vote {
+}