Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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 {}