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.

Foo.java 500B

1234567891011121314151617181920212223242526
  1. import java.util.List;
  2. class A extends SuperA<String> {
  3. public B getSomeB(SuperB<String> b) { return null; }
  4. public static void main(String []argv) {
  5. A a = new A();
  6. System.out.println(a.getSomeB(null));
  7. }
  8. }
  9. class B extends SuperB<String> {
  10. }
  11. abstract class SuperA<T> {
  12. public abstract SuperB<T> getSomeB(SuperB<T> b);
  13. }
  14. class SuperB<T> { }
  15. /*
  16. public privileged aspect A_ITD {
  17. declare parents: A extends SuperA<String>;
  18. public B A.getSomeB(SuperB<String> b) { return null; }
  19. }
  20. */