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.

HasMethodViaITD.aj 260B

1234567891011121314151617
  1. public aspect HasMethodViaITD {
  2. declare parents : hasmethod(* foo()) implements I;
  3. // C gets foo via ITD
  4. public void C.foo() {}
  5. declare warning : execution(* I+.bar()) : "hasmethod matched on ITD ok";
  6. }
  7. interface I {}
  8. class C {
  9. void bar() {}
  10. }