You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Construction4.java 489B

1234567891011121314151617181920
  1. aspect Aspect1 {
  2. public static Construction4._ Construction4._() { return new _("abc"); }
  3. public static String Construction4.foo() { return "abc"; }
  4. }
  5. aspect Aspect2 {
  6. public static class Construction4._ {
  7. String string;
  8. public _(String string) { this.string = string;}
  9. public String toString() {
  10. return string;
  11. }
  12. }
  13. }
  14. public class Construction4 {
  15. public static void main(String []argv) {
  16. Object o = _();
  17. o = foo();
  18. System.out.println(o);
  19. }
  20. }