This is the mail archive of the
java-prs@sources.redhat.com
mailing list for the Java project.
gcj/339: Process doesn't throw IOException
- To: java-gnats at sourceware dot cygnus dot com
- Subject: gcj/339: Process doesn't throw IOException
- From: osk at hem dot passagen dot se
- Date: 5 Sep 2000 10:35:47 -0000
- Reply-To: osk at hem dot passagen dot se
- Resent-Cc: java-prs at sourceware dot cygnus dot com, green at cygnus dot com
- Resent-Reply-To: java-gnats@sourceware.cygnus.com, osk@hem.passagen.se
>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: