From: aclement Date: Fri, 11 Jun 2010 16:35:49 +0000 (+0000) Subject: itd inners: testcode X-Git-Tag: V1_6_9RC2~32 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9f636c13c87ace2bf0405061f8ce99bcfc6dc649;p=aspectj.git itd inners: testcode --- 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 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 { +}