This is the mail archive of the java-prs@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcj/339: Process doesn't throw IOException



>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:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]