NPE in compiler when using (an unusual) declare warning against a ctor ITD
</compile>
</ajc-test>
+ <ajc-test dir="bugs"
+ pr="59397"
+ title="NPE in compiler when using (an unusual) declare warning against a ctor ITD">
+ <compile files="DecwInitializationITD.java">
+ <message kind="warning" line="16"/>
+ </compile>
+ </ajc-test>
+
</suite>
--- /dev/null
+
+// The actual ctor that gets put in type 'HW' during compilation is
+// HW(String,A)
+// This is an artifact of the implementation of ctor ITDing - unfortunately this artifact
+// can be seen by the declare warning. So,
+// initialization(HW.new(..)) will match our new ctor
+// initialization(HW.new(String,A)) will match our new ctor
+// initialization(HW.new(String)) will not match !
+
+aspect A {
+ HW.new(String s) {}
+ declare warning : initialization(HW.new(String,A)) : "Funky ctor found!";
+}
+
+
+class HW {}