aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features169
diff options
context:
space:
mode:
authoraclement <aclement>2010-06-11 16:35:25 +0000
committeraclement <aclement>2010-06-11 16:35:25 +0000
commitb58d2c1d47be6eef0d017e45a49c27946bce4b84 (patch)
treee9c038084fd81e88842a5ed775e9a85d514cb1ed /tests/features169
parent1e177eeb15107bd62748e0e7277fce0f06ef847b (diff)
downloadaspectj-b58d2c1d47be6eef0d017e45a49c27946bce4b84.tar.gz
aspectj-b58d2c1d47be6eef0d017e45a49c27946bce4b84.zip
itd inners: testcode
Diffstat (limited to 'tests/features169')
-rw-r--r--tests/features169/itdInnerTypes/Construction.java11
-rw-r--r--tests/features169/itdInnerTypes/Construction3.java18
-rw-r--r--tests/features169/itdInnerTypes/Construction4.java20
-rw-r--r--tests/features169/itdInnerTypes/eight/RelatedType.java7
-rw-r--r--tests/features169/itdInnerTypes/eight/Runner.java11
-rw-r--r--tests/features169/itdInnerTypes/eight/Underscorer.aj17
-rw-r--r--tests/features169/itdInnerTypes/eight/Vote.java9
-rw-r--r--tests/features169/itdInnerTypes/five/RelatedType.java7
-rw-r--r--tests/features169/itdInnerTypes/five/Runner.java11
-rw-r--r--tests/features169/itdInnerTypes/five/Vote.java6
-rw-r--r--tests/features169/itdInnerTypes/five/Vote_Amender.aj15
-rw-r--r--tests/features169/itdInnerTypes/four/RelatedType.java7
-rw-r--r--tests/features169/itdInnerTypes/four/Runner.java11
-rw-r--r--tests/features169/itdInnerTypes/four/Vote.java6
-rw-r--r--tests/features169/itdInnerTypes/four/Vote_Amender.aj10
-rw-r--r--tests/features169/itdInnerTypes/nine/RelatedType.java7
-rw-r--r--tests/features169/itdInnerTypes/nine/Runner.java11
-rw-r--r--tests/features169/itdInnerTypes/nine/Underscorer.aj17
-rw-r--r--tests/features169/itdInnerTypes/nine/Vote.java9
-rw-r--r--tests/features169/itdInnerTypes/one/Runner.java7
-rw-r--r--tests/features169/itdInnerTypes/one/Vote.java4
-rw-r--r--tests/features169/itdInnerTypes/one/Vote_Amender.aj6
-rw-r--r--tests/features169/itdInnerTypes/seven/RelatedType.java7
-rw-r--r--tests/features169/itdInnerTypes/seven/Runner.java11
-rw-r--r--tests/features169/itdInnerTypes/seven/Underscorer.aj15
-rw-r--r--tests/features169/itdInnerTypes/seven/Vote.java9
-rw-r--r--tests/features169/itdInnerTypes/six/RelatedType.java7
-rw-r--r--tests/features169/itdInnerTypes/six/Runner.java11
-rw-r--r--tests/features169/itdInnerTypes/six/Vote.java9
-rw-r--r--tests/features169/itdInnerTypes/six/Vote_Amender.aj15
-rw-r--r--tests/features169/itdInnerTypes/ten/Aspect1.java10
-rw-r--r--tests/features169/itdInnerTypes/ten/Aspect2.java3
-rw-r--r--tests/features169/itdInnerTypes/ten/Construction.java6
-rw-r--r--tests/features169/itdInnerTypes/three/RelatedType.java7
-rw-r--r--tests/features169/itdInnerTypes/three/Runner.java11
-rw-r--r--tests/features169/itdInnerTypes/three/Vote.java6
-rw-r--r--tests/features169/itdInnerTypes/three/Vote_Amender.aj10
-rw-r--r--tests/features169/itdInnerTypes/two/Runner.java8
-rw-r--r--tests/features169/itdInnerTypes/two/Vote.java4
-rw-r--r--tests/features169/itdInnerTypes/two/Vote_Amender.aj9
40 files changed, 385 insertions, 0 deletions
diff --git a/tests/features169/itdInnerTypes/Construction.java b/tests/features169/itdInnerTypes/Construction.java
new file mode 100644
index 000000000..40f965b3d
--- /dev/null
+++ b/tests/features169/itdInnerTypes/Construction.java
@@ -0,0 +1,11 @@
+public class Construction {
+ public static void main(String []argv) {
+ new _();
+ System.out.println("done");
+ }
+}
+
+aspect XX {
+ public static class Construction._ {
+ }
+}
diff --git a/tests/features169/itdInnerTypes/Construction3.java b/tests/features169/itdInnerTypes/Construction3.java
new file mode 100644
index 000000000..b4f197352
--- /dev/null
+++ b/tests/features169/itdInnerTypes/Construction3.java
@@ -0,0 +1,18 @@
+aspect Aspect2 {
+ public static class Construction3._ {
+ String string;
+ public _(String string) { this.string = string;}
+ public String toString() {
+ return string;
+ }
+ }
+ public static Construction3._ Construction3._() { return new _("abc"); }
+ public static String Construction3.foo() { return "abc"; }
+}
+public class Construction3 {
+ public static void main(String []argv) {
+ Object o = _();
+ o = foo();
+ System.out.println(o);
+ }
+}
diff --git a/tests/features169/itdInnerTypes/Construction4.java b/tests/features169/itdInnerTypes/Construction4.java
new file mode 100644
index 000000000..5c97371b8
--- /dev/null
+++ b/tests/features169/itdInnerTypes/Construction4.java
@@ -0,0 +1,20 @@
+aspect Aspect1 {
+ public static Construction4._ Construction4._() { return new _("abc"); }
+ public static String Construction4.foo() { return "abc"; }
+}
+aspect Aspect2 {
+ public static class Construction4._ {
+ String string;
+ public _(String string) { this.string = string;}
+ public String toString() {
+ return string;
+ }
+ }
+}
+public class Construction4 {
+ public static void main(String []argv) {
+ Object o = _();
+ o = foo();
+ System.out.println(o);
+ }
+}
diff --git a/tests/features169/itdInnerTypes/eight/RelatedType.java b/tests/features169/itdInnerTypes/eight/RelatedType.java
new file mode 100644
index 000000000..a9c828719
--- /dev/null
+++ b/tests/features169/itdInnerTypes/eight/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/features169/itdInnerTypes/eight/Runner.java b/tests/features169/itdInnerTypes/eight/Runner.java
new file mode 100644
index 000000000..f9bd75421
--- /dev/null
+++ b/tests/features169/itdInnerTypes/eight/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/features169/itdInnerTypes/eight/Underscorer.aj b/tests/features169/itdInnerTypes/eight/Underscorer.aj
new file mode 100644
index 000000000..93ca709d6
--- /dev/null
+++ b/tests/features169/itdInnerTypes/eight/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/features169/itdInnerTypes/eight/Vote.java b/tests/features169/itdInnerTypes/eight/Vote.java
new file mode 100644
index 000000000..8d22bdc7a
--- /dev/null
+++ b/tests/features169/itdInnerTypes/eight/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/features169/itdInnerTypes/five/RelatedType.java b/tests/features169/itdInnerTypes/five/RelatedType.java
new file mode 100644
index 000000000..a9c828719
--- /dev/null
+++ b/tests/features169/itdInnerTypes/five/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/features169/itdInnerTypes/five/Runner.java b/tests/features169/itdInnerTypes/five/Runner.java
new file mode 100644
index 000000000..f9bd75421
--- /dev/null
+++ b/tests/features169/itdInnerTypes/five/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/features169/itdInnerTypes/five/Vote.java b/tests/features169/itdInnerTypes/five/Vote.java
new file mode 100644
index 000000000..fc3c8bc73
--- /dev/null
+++ b/tests/features169/itdInnerTypes/five/Vote.java
@@ -0,0 +1,6 @@
+package a.b.c;
+
+public class Vote {
+ static class RealInner {
+ }
+}
diff --git a/tests/features169/itdInnerTypes/five/Vote_Amender.aj b/tests/features169/itdInnerTypes/five/Vote_Amender.aj
new file mode 100644
index 000000000..ec80d28df
--- /dev/null
+++ b/tests/features169/itdInnerTypes/five/Vote_Amender.aj
@@ -0,0 +1,15 @@
+package a.b.c;
+
+public aspect Vote_Amender {
+ 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/features169/itdInnerTypes/four/RelatedType.java b/tests/features169/itdInnerTypes/four/RelatedType.java
new file mode 100644
index 000000000..a9c828719
--- /dev/null
+++ b/tests/features169/itdInnerTypes/four/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/features169/itdInnerTypes/four/Runner.java b/tests/features169/itdInnerTypes/four/Runner.java
new file mode 100644
index 000000000..f9bd75421
--- /dev/null
+++ b/tests/features169/itdInnerTypes/four/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/features169/itdInnerTypes/four/Vote.java b/tests/features169/itdInnerTypes/four/Vote.java
new file mode 100644
index 000000000..fc3c8bc73
--- /dev/null
+++ b/tests/features169/itdInnerTypes/four/Vote.java
@@ -0,0 +1,6 @@
+package a.b.c;
+
+public class Vote {
+ static class RealInner {
+ }
+}
diff --git a/tests/features169/itdInnerTypes/four/Vote_Amender.aj b/tests/features169/itdInnerTypes/four/Vote_Amender.aj
new file mode 100644
index 000000000..44a4ff750
--- /dev/null
+++ b/tests/features169/itdInnerTypes/four/Vote_Amender.aj
@@ -0,0 +1,10 @@
+package a.b.c;
+
+public aspect Vote_Amender {
+ public static class Vote._ {
+ private String string;
+ public static class choice {}
+ public _(String string) { this.string = string; }
+ public String getString() { return this.string; }
+ }
+}
diff --git a/tests/features169/itdInnerTypes/nine/RelatedType.java b/tests/features169/itdInnerTypes/nine/RelatedType.java
new file mode 100644
index 000000000..a9c828719
--- /dev/null
+++ b/tests/features169/itdInnerTypes/nine/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/features169/itdInnerTypes/nine/Runner.java b/tests/features169/itdInnerTypes/nine/Runner.java
new file mode 100644
index 000000000..f9bd75421
--- /dev/null
+++ b/tests/features169/itdInnerTypes/nine/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/features169/itdInnerTypes/nine/Underscorer.aj b/tests/features169/itdInnerTypes/nine/Underscorer.aj
new file mode 100644
index 000000000..2d633bfc7
--- /dev/null
+++ b/tests/features169/itdInnerTypes/nine/Underscorer.aj
@@ -0,0 +1,17 @@
+package a.b.c;
+
+public aspect Underscorer {
+ public Vote._ Vote._() { return new Vote._(null); }
+
+ 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/features169/itdInnerTypes/nine/Vote.java b/tests/features169/itdInnerTypes/nine/Vote.java
new file mode 100644
index 000000000..956c7e1bb
--- /dev/null
+++ b/tests/features169/itdInnerTypes/nine/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/features169/itdInnerTypes/one/Runner.java b/tests/features169/itdInnerTypes/one/Runner.java
new file mode 100644
index 000000000..b0f9cefe5
--- /dev/null
+++ b/tests/features169/itdInnerTypes/one/Runner.java
@@ -0,0 +1,7 @@
+package a.b.c;
+
+public class Runner {
+ public static void main(String[]argv) {
+ new Vote();
+ }
+}
diff --git a/tests/features169/itdInnerTypes/one/Vote.java b/tests/features169/itdInnerTypes/one/Vote.java
new file mode 100644
index 000000000..5ec9ccaea
--- /dev/null
+++ b/tests/features169/itdInnerTypes/one/Vote.java
@@ -0,0 +1,4 @@
+package a.b.c;
+
+public class Vote {
+}
diff --git a/tests/features169/itdInnerTypes/one/Vote_Amender.aj b/tests/features169/itdInnerTypes/one/Vote_Amender.aj
new file mode 100644
index 000000000..4c8c7ee2d
--- /dev/null
+++ b/tests/features169/itdInnerTypes/one/Vote_Amender.aj
@@ -0,0 +1,6 @@
+package a.b.c;
+
+aspect Vote_Amender {
+ static class Vote._ {
+ }
+}
diff --git a/tests/features169/itdInnerTypes/seven/RelatedType.java b/tests/features169/itdInnerTypes/seven/RelatedType.java
new file mode 100644
index 000000000..a9c828719
--- /dev/null
+++ b/tests/features169/itdInnerTypes/seven/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/features169/itdInnerTypes/seven/Runner.java b/tests/features169/itdInnerTypes/seven/Runner.java
new file mode 100644
index 000000000..f9bd75421
--- /dev/null
+++ b/tests/features169/itdInnerTypes/seven/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/features169/itdInnerTypes/seven/Underscorer.aj b/tests/features169/itdInnerTypes/seven/Underscorer.aj
new file mode 100644
index 000000000..7834247e4
--- /dev/null
+++ b/tests/features169/itdInnerTypes/seven/Underscorer.aj
@@ -0,0 +1,15 @@
+package a.b.c;
+
+public aspect Underscorer {
+ 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/features169/itdInnerTypes/seven/Vote.java b/tests/features169/itdInnerTypes/seven/Vote.java
new file mode 100644
index 000000000..8d22bdc7a
--- /dev/null
+++ b/tests/features169/itdInnerTypes/seven/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/features169/itdInnerTypes/six/RelatedType.java b/tests/features169/itdInnerTypes/six/RelatedType.java
new file mode 100644
index 000000000..a9c828719
--- /dev/null
+++ b/tests/features169/itdInnerTypes/six/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/features169/itdInnerTypes/six/Runner.java b/tests/features169/itdInnerTypes/six/Runner.java
new file mode 100644
index 000000000..f9bd75421
--- /dev/null
+++ b/tests/features169/itdInnerTypes/six/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/features169/itdInnerTypes/six/Vote.java b/tests/features169/itdInnerTypes/six/Vote.java
new file mode 100644
index 000000000..f0f94b25b
--- /dev/null
+++ b/tests/features169/itdInnerTypes/six/Vote.java
@@ -0,0 +1,9 @@
+package a.b.c;
+
+public class Vote {
+
+ public static Vote._ field = new Vote._(null);
+
+ static class RealInner {}
+
+}
diff --git a/tests/features169/itdInnerTypes/six/Vote_Amender.aj b/tests/features169/itdInnerTypes/six/Vote_Amender.aj
new file mode 100644
index 000000000..ec80d28df
--- /dev/null
+++ b/tests/features169/itdInnerTypes/six/Vote_Amender.aj
@@ -0,0 +1,15 @@
+package a.b.c;
+
+public aspect Vote_Amender {
+ 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/features169/itdInnerTypes/ten/Aspect1.java b/tests/features169/itdInnerTypes/ten/Aspect1.java
new file mode 100644
index 000000000..5d9509654
--- /dev/null
+++ b/tests/features169/itdInnerTypes/ten/Aspect1.java
@@ -0,0 +1,10 @@
+aspect Aspect1 {
+ public static class Construction._ {
+ private String string;
+ public _(String string) { this.string = string; }
+ public _() { this.string = "nothing"; }
+ public String toString() {
+ return string;
+ }
+ }
+}
diff --git a/tests/features169/itdInnerTypes/ten/Aspect2.java b/tests/features169/itdInnerTypes/ten/Aspect2.java
new file mode 100644
index 000000000..0048ddf60
--- /dev/null
+++ b/tests/features169/itdInnerTypes/ten/Aspect2.java
@@ -0,0 +1,3 @@
+aspect Aspect2 {
+ public Construction._ Construction._() { return new _("abc"); }
+}
diff --git a/tests/features169/itdInnerTypes/ten/Construction.java b/tests/features169/itdInnerTypes/ten/Construction.java
new file mode 100644
index 000000000..43b32a4f8
--- /dev/null
+++ b/tests/features169/itdInnerTypes/ten/Construction.java
@@ -0,0 +1,6 @@
+public class Construction {
+ public static void main(String []argv) {
+ new _();
+ System.out.println(new _("abcde"));
+ }
+}
diff --git a/tests/features169/itdInnerTypes/three/RelatedType.java b/tests/features169/itdInnerTypes/three/RelatedType.java
new file mode 100644
index 000000000..a9c828719
--- /dev/null
+++ b/tests/features169/itdInnerTypes/three/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/features169/itdInnerTypes/three/Runner.java b/tests/features169/itdInnerTypes/three/Runner.java
new file mode 100644
index 000000000..cc36878ae
--- /dev/null
+++ b/tests/features169/itdInnerTypes/three/Runner.java
@@ -0,0 +1,11 @@
+package a.b.c;
+
+@RelatedType(value=Vote._.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/features169/itdInnerTypes/three/Vote.java b/tests/features169/itdInnerTypes/three/Vote.java
new file mode 100644
index 000000000..fc3c8bc73
--- /dev/null
+++ b/tests/features169/itdInnerTypes/three/Vote.java
@@ -0,0 +1,6 @@
+package a.b.c;
+
+public class Vote {
+ static class RealInner {
+ }
+}
diff --git a/tests/features169/itdInnerTypes/three/Vote_Amender.aj b/tests/features169/itdInnerTypes/three/Vote_Amender.aj
new file mode 100644
index 000000000..457ec506d
--- /dev/null
+++ b/tests/features169/itdInnerTypes/three/Vote_Amender.aj
@@ -0,0 +1,10 @@
+package a.b.c;
+
+public aspect Vote_Amender {
+ public static class Vote._ {
+ private String string;
+ private String choice = "abc";
+ public _(String string) { this.string = string; }
+ public String getString() { return this.string; }
+ }
+}
diff --git a/tests/features169/itdInnerTypes/two/Runner.java b/tests/features169/itdInnerTypes/two/Runner.java
new file mode 100644
index 000000000..eb5987ad5
--- /dev/null
+++ b/tests/features169/itdInnerTypes/two/Runner.java
@@ -0,0 +1,8 @@
+package a.b.c;
+
+public class Runner {
+ public static void main(String[]argv) {
+ Vote._ v = new Vote._("wibble");
+ System.out.println(v.getString());
+ }
+}
diff --git a/tests/features169/itdInnerTypes/two/Vote.java b/tests/features169/itdInnerTypes/two/Vote.java
new file mode 100644
index 000000000..5ec9ccaea
--- /dev/null
+++ b/tests/features169/itdInnerTypes/two/Vote.java
@@ -0,0 +1,4 @@
+package a.b.c;
+
+public class Vote {
+}
diff --git a/tests/features169/itdInnerTypes/two/Vote_Amender.aj b/tests/features169/itdInnerTypes/two/Vote_Amender.aj
new file mode 100644
index 000000000..1c5a95016
--- /dev/null
+++ b/tests/features169/itdInnerTypes/two/Vote_Amender.aj
@@ -0,0 +1,9 @@
+package a.b.c;
+
+public aspect Vote_Amender {
+ public static class Vote._ {
+ private String string;
+ public _(String string) { this.string = string; }
+ public String getString() { return this.string; }
+ }
+}