[Top][All Lists]
[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: |
Fri, 25 Jul 2003 12:09:38 -0400 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020826 |
=================== BUG #4477: FULL BUG SNAPSHOT ===================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4477&group_id=85
Submitted by: yozh Project: classpath
Submitted on: Fri 07/25/2003 at 16:09
Severity: 5 - Major Resolution: None
Assigned to: None 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.
No Followups Have Been Posted
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/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #4477] PrintWriter.checkError() gives wrong result sometimes,
nobody <=