Runtime should implement IOException

This commit is contained in:
Eric Scharff 2007-09-26 11:22:23 -06:00
parent 4d3fd38d54
commit bd6f2913c5

View File

@ -1,5 +1,6 @@
package java.lang; package java.lang;
import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.io.FileInputStream; import java.io.FileInputStream;
import java.io.OutputStream; import java.io.OutputStream;
@ -31,7 +32,7 @@ public class Runtime {
} }
} }
public Process exec(String command) { public Process exec(String command) throws IOException {
int[] process = new int[4]; int[] process = new int[4];
exec(command, process); exec(command, process);
return new MyProcess(process[0], process[1], process[2], process[3]); return new MyProcess(process[0], process[1], process[2], process[3]);