From mboxrd@z Thu Jan 1 00:00:00 1970 From: gfa@acm.org To: java-gnats@sourceware.cygnus.com Subject: libgcj/1236: java::io::FileDescriptor::available throws exception Date: Wed, 20 Dec 2000 12:22:00 -0000 Message-id: <19990807140721.1617.qmail@egcs.cygnus.com> X-SW-Source: 2000-q4/msg01014.html List-Id: >Number: 1236 >Category: libgcj >Synopsis: java::io::FileDescriptor::available throws exception >Confidential: no >Severity: critical >Priority: medium >Responsible: java-hacker >State: closed >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Dec 20 12:18:05 PST 2000 >Closed-Date: Sat Nov 06 21:36:47 PST 1999 >Last-Modified: Sat Nov 6 21:40:00 PST 1999 >Originator: George Fankhauser >Release: 2.95 >Organization: >Environment: Linux 2.2 >Description: if (System.in.available() > 0) { System.in.read(...); throws java.io.IOException (Bad file descriptor) same code works on same platform with jdk 1.1.7 >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: Formerly PR libgcj/20 Responsible-Changed-From-To: apbianco->java-hacker Responsible-Changed-By: green Responsible-Changed-When: Sun Aug 8 19:31:02 1999 Responsible-Changed-Why: This probably isn't a compiler problem. State-Changed-From-To: open->analyzed State-Changed-By: green State-Changed-When: Sun Aug 8 19:31:02 1999 State-Changed-Why: I've tried the following and wasn't able to reproduce the problem. Could you please try running some input through this program? If this doesn't reproduce the problem, could you provide a full example? Thanks. ---- cut here ---------------------------------------------- import java.io.*; class pr20 { public static void main (String[] args) throws IOException { if (System.in.available() > 0) System.out.println(System.in.read()); } } ---- cut here ---------------------------------------------- State-Changed-From-To: analyzed->closed State-Changed-By: green State-Changed-When: Sat Nov 6 21:36:47 1999 State-Changed-Why: We're unable to reproduce this problem with the latest development sources. From: green@cygnus.com To: gfa@acm.org, green@cygnus.com, java-gnats@sourceware.cygnus.com Cc: Subject: Re: libgcj/20 Date: 7 Nov 1999 05:36:47 -0000 Synopsis: java::io::FileDescriptor::available throws exception State-Changed-From-To: analyzed->closed State-Changed-By: green State-Changed-When: Sat Nov 6 21:36:47 1999 State-Changed-Why: We're unable to reproduce this problem with the latest development sources. http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&database=java&pr=20 >Unformatted: