< prev index next >

test/java/lang/ProcessBuilder/Zombies.java

Print this page
rev 10985 : [mq]: 8061549

@@ -45,21 +45,21 @@
         final Runtime rt = Runtime.getRuntime();
 
         try {
             rt.exec("no-such-file");
             throw new Error("expected IOException not thrown");
-        } catch (IOException _) {/* OK */}
+        } catch (IOException expected) {/* OK */}
 
         try {
             rt.exec(".");
             throw new Error("expected IOException not thrown");
-        } catch (IOException _) {/* OK */}
+        } catch (IOException expected) {/* OK */}
 
         try {
             rt.exec(TrueCommand, null, new File("no-such-dir"));
             throw new Error("expected IOException not thrown");
-        } catch (IOException _) {/* OK */}
+        } catch (IOException expected) {/* OK */}
 
         rt.exec(TrueCommand).waitFor();
 
         // Count all the zombies that are children of this Java process
         final String[] zombieCounter = {
< prev index next >