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.

Code.java 394B

12345678910111213141516171819202122232425
  1. public class Code {
  2. public static void main(String[]argv) {
  3. }
  4. public void foo(UID x) {
  5. bar((x instanceof UID ? E.one : E.two));
  6. }
  7. public static void bar(FM fm) { }
  8. }
  9. aspect X {
  10. void around(): execution(* foo(..)) {
  11. }
  12. }
  13. class E {
  14. static BBB one;
  15. static CCC two;
  16. class BBB extends FM<String> {}
  17. class CCC extends FM<Long> {}
  18. }
  19. class FM<T> {}
  20. class UID {}