gcj/339: Process doesn't throw IOException
osk@hem.passagen.se
osk@hem.passagen.se
Tue Sep 5 03:40:00 GMT 2000
>Number: 339
>Category: gcj
>Synopsis: Process doesn't throw IOException
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Sep 05 03:40:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Oskar Liljeblad
>Release: unknown-1.0
>Organization:
>Environment:
egcs 2000-08-14
libgcj 2000-09-04
>Description:
java.lang.Process doesn't throw an IOException when it
fails to execute a program (for example when the
program can't be found).
Oskar Liljeblad (osk@hem.passagen.se)
>How-To-Repeat:
import java.io.*;
class Dummy {
public static void main(String[] args)
throws IOException {
String[] procArgs = { "very-much-non-existing-program" };
Process proc = Runtime.getRuntime().exec(procArgs);
BufferedReader in = new BufferedReader(new InputStreamReader(proc.getInputStream()));
System.err.println("["+in.readLine()+"]");
}
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Java-prs
mailing list