--- /dev/null
+aspect A {
+ HW.new(String s) {}
+ declare warning : initialization(HW.new(String,A)) : "should not match";
+ declare warning : initialization(HW.new(String)) : "should match";
+}
+class HW {}
\ No newline at end of file
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>
runTest("no unused warnings on aspect types");
}
+ public void testSyntheticArgumentsOnITDConstructorsNotUsedInMatching() {
+ runTest("synthetic arguments on itd cons are not used in matching");
+ }
+
// helper methods.....
public SyntheticRepository createRepos(File cpentry) {
<compile files="pr74048.aj" options="-warn:unusedPrivate"/>
</ajc-test>
+ <ajc-test dir="bugs150" pr="59397" title="synthetic arguments on itd cons are not used in matching">
+ <compile files="pr59397.aj">
+ <message line="6" kind="warning" text="should match"/>
+ </compile>
+ </ajc-test>
+
<!-- ============================================================================ -->
<!-- ============================================================================ -->