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.

DecwInitializationITD.java 525B

12345678910111213141516
  1. // The actual ctor that gets put in type 'HW' during compilation is
  2. // HW(String,A)
  3. // This is an artifact of the implementation of ctor ITDing - unfortunately this artifact
  4. // can be seen by the declare warning. So,
  5. // initialization(HW.new(..)) will match our new ctor
  6. // initialization(HW.new(String,A)) will match our new ctor
  7. // initialization(HW.new(String)) will not match !
  8. aspect A {
  9. HW.new(String s) { this(); }
  10. declare warning : initialization(HW.new(String,A)) : "Funky ctor found!";
  11. }
  12. class HW {}