Browse Source

itd inners: testcode

tags/V1_6_9RC2
aclement 14 years ago
parent
commit
b58d2c1d47
40 changed files with 385 additions and 0 deletions
  1. 11
    0
      tests/features169/itdInnerTypes/Construction.java
  2. 18
    0
      tests/features169/itdInnerTypes/Construction3.java
  3. 20
    0
      tests/features169/itdInnerTypes/Construction4.java
  4. 7
    0
      tests/features169/itdInnerTypes/eight/RelatedType.java
  5. 11
    0
      tests/features169/itdInnerTypes/eight/Runner.java
  6. 17
    0
      tests/features169/itdInnerTypes/eight/Underscorer.aj
  7. 9
    0
      tests/features169/itdInnerTypes/eight/Vote.java
  8. 7
    0
      tests/features169/itdInnerTypes/five/RelatedType.java
  9. 11
    0
      tests/features169/itdInnerTypes/five/Runner.java
  10. 6
    0
      tests/features169/itdInnerTypes/five/Vote.java
  11. 15
    0
      tests/features169/itdInnerTypes/five/Vote_Amender.aj
  12. 7
    0
      tests/features169/itdInnerTypes/four/RelatedType.java
  13. 11
    0
      tests/features169/itdInnerTypes/four/Runner.java
  14. 6
    0
      tests/features169/itdInnerTypes/four/Vote.java
  15. 10
    0
      tests/features169/itdInnerTypes/four/Vote_Amender.aj
  16. 7
    0
      tests/features169/itdInnerTypes/nine/RelatedType.java
  17. 11
    0
      tests/features169/itdInnerTypes/nine/Runner.java
  18. 17
    0
      tests/features169/itdInnerTypes/nine/Underscorer.aj
  19. 9
    0
      tests/features169/itdInnerTypes/nine/Vote.java
  20. 7
    0
      tests/features169/itdInnerTypes/one/Runner.java
  21. 4
    0
      tests/features169/itdInnerTypes/one/Vote.java
  22. 6
    0
      tests/features169/itdInnerTypes/one/Vote_Amender.aj
  23. 7
    0
      tests/features169/itdInnerTypes/seven/RelatedType.java
  24. 11
    0
      tests/features169/itdInnerTypes/seven/Runner.java
  25. 15
    0
      tests/features169/itdInnerTypes/seven/Underscorer.aj
  26. 9
    0
      tests/features169/itdInnerTypes/seven/Vote.java
  27. 7
    0
      tests/features169/itdInnerTypes/six/RelatedType.java
  28. 11
    0
      tests/features169/itdInnerTypes/six/Runner.java
  29. 9
    0
      tests/features169/itdInnerTypes/six/Vote.java
  30. 15
    0
      tests/features169/itdInnerTypes/six/Vote_Amender.aj
  31. 10
    0
      tests/features169/itdInnerTypes/ten/Aspect1.java
  32. 3
    0
      tests/features169/itdInnerTypes/ten/Aspect2.java
  33. 6
    0
      tests/features169/itdInnerTypes/ten/Construction.java
  34. 7
    0
      tests/features169/itdInnerTypes/three/RelatedType.java
  35. 11
    0
      tests/features169/itdInnerTypes/three/Runner.java
  36. 6
    0
      tests/features169/itdInnerTypes/three/Vote.java
  37. 10
    0
      tests/features169/itdInnerTypes/three/Vote_Amender.aj
  38. 8
    0
      tests/features169/itdInnerTypes/two/Runner.java
  39. 4
    0
      tests/features169/itdInnerTypes/two/Vote.java
  40. 9
    0
      tests/features169/itdInnerTypes/two/Vote_Amender.aj

+ 11
- 0
tests/features169/itdInnerTypes/Construction.java View File

@@ -0,0 +1,11 @@
public class Construction {
public static void main(String []argv) {
new _();
System.out.println("done");
}
}

aspect XX {
public static class Construction._ {
}
}

+ 18
- 0
tests/features169/itdInnerTypes/Construction3.java View File

@@ -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);
}
}

+ 20
- 0
tests/features169/itdInnerTypes/Construction4.java View File

@@ -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);
}
}

+ 7
- 0
tests/features169/itdInnerTypes/eight/RelatedType.java View File

@@ -0,0 +1,7 @@
package a.b.c;
import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
public @interface RelatedType {
Class<?> value();
}

+ 11
- 0
tests/features169/itdInnerTypes/eight/Runner.java View File

@@ -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]);
}
}


+ 17
- 0
tests/features169/itdInnerTypes/eight/Underscorer.aj View File

@@ -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; }
}
}
}

+ 9
- 0
tests/features169/itdInnerTypes/eight/Vote.java View File

@@ -0,0 +1,9 @@
package a.b.c;

public class Vote {

public static Vote._ _() { return new Vote._(null); }

static class RealInner {}

}

+ 7
- 0
tests/features169/itdInnerTypes/five/RelatedType.java View File

@@ -0,0 +1,7 @@
package a.b.c;
import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
public @interface RelatedType {
Class<?> value();
}

+ 11
- 0
tests/features169/itdInnerTypes/five/Runner.java View File

@@ -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]);
}
}


+ 6
- 0
tests/features169/itdInnerTypes/five/Vote.java View File

@@ -0,0 +1,6 @@
package a.b.c;

public class Vote {
static class RealInner {
}
}

+ 15
- 0
tests/features169/itdInnerTypes/five/Vote_Amender.aj View File

@@ -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; }
}
}
}

+ 7
- 0
tests/features169/itdInnerTypes/four/RelatedType.java View File

@@ -0,0 +1,7 @@
package a.b.c;
import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
public @interface RelatedType {
Class<?> value();
}

+ 11
- 0
tests/features169/itdInnerTypes/four/Runner.java View File

@@ -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]);
}
}


+ 6
- 0
tests/features169/itdInnerTypes/four/Vote.java View File

@@ -0,0 +1,6 @@
package a.b.c;

public class Vote {
static class RealInner {
}
}

+ 10
- 0
tests/features169/itdInnerTypes/four/Vote_Amender.aj View File

@@ -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; }
}
}

+ 7
- 0
tests/features169/itdInnerTypes/nine/RelatedType.java View File

@@ -0,0 +1,7 @@
package a.b.c;
import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
public @interface RelatedType {
Class<?> value();
}

+ 11
- 0
tests/features169/itdInnerTypes/nine/Runner.java View File

@@ -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]);
}
}


+ 17
- 0
tests/features169/itdInnerTypes/nine/Underscorer.aj View File

@@ -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; }
}
}
}

+ 9
- 0
tests/features169/itdInnerTypes/nine/Vote.java View File

@@ -0,0 +1,9 @@
package a.b.c;

public class Vote {

// public static Vote._ _() { return new Vote._(null); }

static class RealInner {}

}

+ 7
- 0
tests/features169/itdInnerTypes/one/Runner.java View File

@@ -0,0 +1,7 @@
package a.b.c;

public class Runner {
public static void main(String[]argv) {
new Vote();
}
}

+ 4
- 0
tests/features169/itdInnerTypes/one/Vote.java View File

@@ -0,0 +1,4 @@
package a.b.c;

public class Vote {
}

+ 6
- 0
tests/features169/itdInnerTypes/one/Vote_Amender.aj View File

@@ -0,0 +1,6 @@
package a.b.c;

aspect Vote_Amender {
static class Vote._ {
}
}

+ 7
- 0
tests/features169/itdInnerTypes/seven/RelatedType.java View File

@@ -0,0 +1,7 @@
package a.b.c;
import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
public @interface RelatedType {
Class<?> value();
}

+ 11
- 0
tests/features169/itdInnerTypes/seven/Runner.java View File

@@ -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]);
}
}


+ 15
- 0
tests/features169/itdInnerTypes/seven/Underscorer.aj View File

@@ -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; }
}
}
}

+ 9
- 0
tests/features169/itdInnerTypes/seven/Vote.java View File

@@ -0,0 +1,9 @@
package a.b.c;

public class Vote {

public static Vote._ _() { return new Vote._(null); }

static class RealInner {}

}

+ 7
- 0
tests/features169/itdInnerTypes/six/RelatedType.java View File

@@ -0,0 +1,7 @@
package a.b.c;
import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
public @interface RelatedType {
Class<?> value();
}

+ 11
- 0
tests/features169/itdInnerTypes/six/Runner.java View File

@@ -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]);
}
}


+ 9
- 0
tests/features169/itdInnerTypes/six/Vote.java View File

@@ -0,0 +1,9 @@
package a.b.c;

public class Vote {

public static Vote._ field = new Vote._(null);

static class RealInner {}

}

+ 15
- 0
tests/features169/itdInnerTypes/six/Vote_Amender.aj View File

@@ -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; }
}
}
}

+ 10
- 0
tests/features169/itdInnerTypes/ten/Aspect1.java View File

@@ -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;
}
}
}

+ 3
- 0
tests/features169/itdInnerTypes/ten/Aspect2.java View File

@@ -0,0 +1,3 @@
aspect Aspect2 {
public Construction._ Construction._() { return new _("abc"); }
}

+ 6
- 0
tests/features169/itdInnerTypes/ten/Construction.java View File

@@ -0,0 +1,6 @@
public class Construction {
public static void main(String []argv) {
new _();
System.out.println(new _("abcde"));
}
}

+ 7
- 0
tests/features169/itdInnerTypes/three/RelatedType.java View File

@@ -0,0 +1,7 @@
package a.b.c;
import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
public @interface RelatedType {
Class<?> value();
}

+ 11
- 0
tests/features169/itdInnerTypes/three/Runner.java View File

@@ -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]);
}
}


+ 6
- 0
tests/features169/itdInnerTypes/three/Vote.java View File

@@ -0,0 +1,6 @@
package a.b.c;

public class Vote {
static class RealInner {
}
}

+ 10
- 0
tests/features169/itdInnerTypes/three/Vote_Amender.aj View File

@@ -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; }
}
}

+ 8
- 0
tests/features169/itdInnerTypes/two/Runner.java View File

@@ -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());
}
}

+ 4
- 0
tests/features169/itdInnerTypes/two/Vote.java View File

@@ -0,0 +1,4 @@
package a.b.c;

public class Vote {
}

+ 9
- 0
tests/features169/itdInnerTypes/two/Vote_Amender.aj View File

@@ -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; }
}
}

Loading…
Cancel
Save