選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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