您最多选择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 {}