<compile files="ClassForName.java"/>
<run class="ClassForName"/>
</ajc-test>
+
+ <ajc-test dir="new/binaryWarnings/src" pr="37020"
+ title="declare warnings on main">
+ <compile files="aspects/MainWarnings.java,app/Main.java">
+ <message kind="warning" file="app/Main.java"
+ line="6" text="set(String Main.staticString)"/>
+ <message kind="warning" file="app/Main.java"
+ line="8" text="set(String Main.s)"/>
+ <message kind="warning" file="app/Main.java"
+ line="12" text="get(String Main.staticString)"/>
+ <message kind="warning" file="app/Main.java"
+ line="14" text="set(String Main.staticString)"/>
+ <message kind="warning" file="app/Main.java"
+ line="16" text="call(Main.new())"/>
+ <message kind="warning" file="app/Main.java"
+ line="19" text="call(void Main.go(String))"/>
+ <message kind="warning" file="app/Main.java"
+ line="23" text="execution(Main.new())"/>
+ <message kind="warning" file="app/Main.java"
+ line="26" text="execution(void Main.go(String))"/>
+ <message kind="warning" file="app/Main.java"
+ line="29" text="get(String Main.s)"/>
+ <message kind="warning" file="app/Main.java"
+ line="31" text="set(String Main.s)"/>
+ <message kind="warning" file="app/Main.java"
+ line="33" text="handler(RuntimeException)"/>
+ <message kind="warning" file="app/Main.java"
+ line="35" text="withincode(void Main.go(String))"/>
+ <message kind="warning" file="app/Main.java"
+ line="42" text="withincode(void Main.stop())"/>
+ <message kind="warning" file="app/Main.java"
+ line="50" text="preinitialization(app.C.new())"/>
+ </compile>
+
+ <run class="app.Main"/>
+ </ajc-test>
+
+ <ajc-test dir="new/binaryWarnings/src" pr="37020"
+ title="declare warnings on binary javac 1.4 classes">
+ <compile files="aspects/MainWarnings.java,../injars/app-javac-1.4.jar">
+ <message kind="warning" file="app/Main.java"
+ line="6" text="set(String Main.staticString)"/>
+ <message kind="warning" file="app/Main.java"
+ line="8" text="set(String Main.s)"/>
+ <message kind="warning" file="app/Main.java"
+ line="12" text="get(String Main.staticString)"/>
+ <message kind="warning" file="app/Main.java"
+ line="14" text="set(String Main.staticString)"/>
+ <message kind="warning" file="app/Main.java"
+ line="16" text="call(Main.new())"/>
+ <message kind="warning" file="app/Main.java"
+ line="19" text="call(void Main.go(String))"/>
+ <message kind="warning" file="app/Main.java"
+ line="23" text="execution(Main.new())"/>
+ <message kind="warning" file="app/Main.java"
+ line="26" text="execution(void Main.go(String))"/>
+ <message kind="warning" file="app/Main.java"
+ line="29" text="get(String Main.s)"/>
+ <message kind="warning" file="app/Main.java"
+ line="31" text="set(String Main.s)"/>
+ <message kind="warning" file="app/Main.java"
+ line="33" text="handler(RuntimeException)"/>
+ <message kind="warning" file="app/Main.java"
+ line="35" text="withincode(void Main.go(String))"/>
+ <message kind="warning" file="app/Main.java"
+ line="42" text="withincode(void Main.stop())"/>
+ <message kind="warning" file="app/Main.java"
+ line="50" text="preinitialization(app.C.new())"/>
+ </compile>
+ <run class="app.Main"/>
+ </ajc-test>
+ <ajc-test dir="new/binaryWarnings/src" pr="37023"
+ title="declare warnings on binary ajc 1.1 classes">
+ <compile files="aspects/MainWarnings.java,../injars/app-ajc-1.1.jar">
+ <message kind="warning" file="app/Main.java"
+ line="6" text="set(String Main.staticString)"/>
+ <message kind="warning" file="app/Main.java"
+ line="8" text="set(String Main.s)"/>
+ <message kind="warning" file="app/Main.java"
+ line="12" text="get(String Main.staticString)"/>
+ <message kind="warning" file="app/Main.java"
+ line="14" text="set(String Main.staticString)"/>
+ <message kind="warning" file="app/Main.java"
+ line="16" text="call(Main.new())"/>
+ <message kind="warning" file="app/Main.java"
+ line="19" text="call(void Main.go(String))"/>
+ <message kind="warning" file="app/Main.java"
+ line="23" text="execution(Main.new())"/>
+ <message kind="warning" file="app/Main.java"
+ line="26" text="execution(void Main.go(String))"/>
+ <message kind="warning" file="app/Main.java"
+ line="29" text="get(String Main.s)"/>
+ <message kind="warning" file="app/Main.java"
+ line="31" text="set(String Main.s)"/>
+ <message kind="warning" file="app/Main.java"
+ line="33" text="handler(RuntimeException)"/>
+ <message kind="warning" file="app/Main.java"
+ line="35" text="withincode(void Main.go(String))"/>
+ <message kind="warning" file="app/Main.java"
+ line="42" text="withincode(void Main.stop())"/>
+ <message kind="warning" file="app/Main.java"
+ line="50" text="preinitialization(app.C.new())"/>
+
+ </compile>
+ <run class="app.Main"/>
+ </ajc-test>
+
+ <ajc-test dir="new/binaryWarnings/src" pr="37020"
+ keywords="knownLimitation"
+ comment="source loc of binary jp depends on first code, not block start"
+ title="declare error on handler/method execution with no code on binary ajc 1.1 classes">
+ <compile files="aspects/MainExecStartLinesErrors.java,../injars/appStartLines-ajc-1.1.jar">
+ <message kind="error" file="app/MainExecStartLines.java"
+ line="6" text="execution(void MainExecStartLines.main(String[]))"/>
+ <message kind="error" file="app/MainExecStartLines.java"
+ line="17" text="handler(RuntimeException)"/>
+ </compile>
+ </ajc-test>
+
+ <ajc-test dir="new/binaryWarnings/src" pr="37020"
+ keywords="knownLimitation"
+ comment="source loc of binary jp depends on first code, not block start; XXX need javac inlining example"
+ title="declare error on handler/method execution with no code on binary javac 1.4 classes">
+ <compile files="aspects/MainExecStartLinesErrors.java,../injars/appStartLines-javac-1.4.jar">
+ <message kind="error" file="app/MainExecStartLines.java"
+ line="6" text="execution(void MainExecStartLines.main(String[]))"/>
+ <message kind="error" file="app/MainExecStartLines.java"
+ line="17" text="handler(RuntimeException)"/>
+ </compile>
+ </ajc-test>
+
</suite>