--- /dev/null
+// IOExceptionInjector.aj
+package test;
+
+import java.io.IOException;
+
+public aspect IOExceptionInjector {
+ pointcut faultInjection() : call(void methodThatThrows() throws
+IOException);
+
+ void around() throws IOException : faultInjection() {
+ throw new IOException("Exception injected by aspect.");
+ }
+}
\ No newline at end of file
--- /dev/null
+package test;
+
+import java.io.IOException;
+
+public class Main {
+ public void testMethod() throws IOException {
+ methodThatThrows();
+ }
+
+ public static void methodThatThrows() throws IOException {
+ System.out.println("Inside method that may throw an IOException");
+ }
+}
\ No newline at end of file
checkWasFullBuild(); // back to the source
}
+ //Bugzilla Bug 152257 - Incremental compiler doesn't handle exception declaration correctly
+/* public void testPr152257() {
+ configureNonStandardCompileOptions("-XnoInline");
+ super.VERBOSE=true;
+ initialiseProject("PR152257");
+ build("PR152257");
+ List errors = MyTaskListManager.getErrorMessages();
+ assertTrue("Should be no warnings, but there are #"+errors.size(),errors.size()==0);
+// checkWasFullBuild();
+ alter("PR152257","inc1");
+ build("PR152257");
+ errors = MyTaskListManager.getErrorMessages();
+ assertTrue("Should be no warnings, but there are #"+errors.size(),errors.size()==0);
+// checkWasntFullBuild();
+ }
+*/
public void testPr128655() {
configureNonStandardCompileOptions("-showWeaveInfo");