commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #4477] PrintWriter.checkError() gives wrong result sometimes


From: nobody
Subject: [bug #4477] PrintWriter.checkError() gives wrong result sometimes
Date: Sat, 09 Aug 2003 15:08:30 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686) Gecko/20030714 Galeon/1.3.7 Debian/1.3.7.20030803-1

=================== BUG #4477: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4477&group_id=85

Changes by: Mark Wielaard <address@hidden>
Date: Sat 08/09/03 at 21:08 (Europe/Amsterdam)

            What     | Removed                   | Added
---------------------------------------------------------------------------
         Assigned to | None                      | mark


------------------ Additional Follow-up Comments ----------------------------
I added a mauve test for this, but it doesn't seem to fail with 
kissme+classpath from CVS. It does fail for gij 3.3. Now rebuilding gcj from 
CVS to recheck.



=================== BUG #4477: FULL BUG SNAPSHOT ===================


Submitted by: yozh                    Project: classpath                    
Submitted on: Fri 07/25/03 at 18:09
Severity:  5 - Major                  Resolution:  None                     
Assigned to:  mark                    Status:  Open                         
Platform Version:  None               

Summary:  PrintWriter.checkError() gives wrong result sometimes

Original Submission:  Code:

===
import java.io.*;

public class Main {
  public static void main(String[] args)
    throws Exception
  {
    PrintWriter p = new PrintWriter(new FileWriter("1"));
    p.close();
    System.out.println(p.checkError());
  }
}
===

prints true, should print false. That is because checkError() calls flush() 
that throws after closing contained writer.


Follow-up Comments
*******************

-------------------------------------------------------
Date: Sat 08/09/03 at 21:08         By: mark
I added a mauve test for this, but it doesn't seem to fail with 
kissme+classpath from CVS. It does fail for gij 3.3. Now rebuilding gcj from 
CVS to recheck.


CC list is empty


No files currently attached


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4477&group_id=85

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]