[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-cp] [bugs #4477] PrintWriter.checkError() gives wrong result som
From: |
Michael Koch |
Subject: |
[commit-cp] [bugs #4477] PrintWriter.checkError() gives wrong result sometimes |
Date: |
Tue, 11 Jan 2005 12:46:17 +0000 |
User-agent: |
Mozilla/5.0 (compatible; Konqueror/3.3; Linux; X11; i686; de) (KHTML, like Gecko) |
This is an automated notification sent by Savannah.
It relates to:
bugs #4477, project classpath
==============================================================================
LATEST MODIFICATIONS of bugs #4477:
==============================================================================
Posted by: Michael Koch <mkoch>
Posted on: 2005-01-11 12:46 (GMT)
_______________________________________________________
Category: None -> classpath
==============================================================================
OVERVIEW of bugs #4477:
==============================================================================
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=4477>
Summary: PrintWriter.checkError() gives wrong result
sometimes
Project: classpath
Submitted by: yozh
Submitted on: Fre 25.07.2003 um 16:09
Category: classpath
Severity: 5 - Average
Status: None
Privacy: Public
Assigned to: mark
Open/Closed: Open
Platform Version: None
_______________________________________________________
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: Fre 12.03.2004 um 13:10 By: Mark Wielaard <mark>
Confirmed. There is now an explicit Mauve test for this.
gnu/testlet/java/io/PrintWriter/checkError.java
$ echo gnu.testlet.java.io.PrintWriter.checkError | jamvm
gnu.testlet.SimpleTestHarness
FAIL: gnu.testlet.java.io.PrintWriter.checkError (number 3)
1 of 4 tests failed
This is against classpath-0.08-test1
-------------------------------------------------------
Date: Sam 09.08.2003 um 19:08 By: Mark Wielaard <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.
==============================================================================
This item URL is:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=4477>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [commit-cp] [bugs #4477] PrintWriter.checkError() gives wrong result sometimes,
Michael Koch <=