not calling checkError when using java.io.PrintWriter and java.io.PrintStream should be flagged
GoogleCodeExporter opened this issue · comments
Google Code Exporter commented
In javadocs for java.io.PrintStream
(http://java.sun.com/j2se/1.4.2/docs/api/java/io/PrintStream.html)
"Unlike other output streams, a PrintStream never throws an IOException;
instead, exceptional situations merely set an internal flag that can be tested
via the checkError method. "
similar for java.io.PrintWriter.
Perhaps findbugs should warn when calling write and not checking the error
status.
Original issue reported on code.google.com by perd...@gmail.com
on 2 Oct 2009 at 11:07
Google Code Exporter commented
Thanks for the report, but please report this bug at sourceforge bug tracker
again. This tracker is not used / monitored.
Original comment by iloveeclipse
on 23 Nov 2011 at 10:00
- Changed state: Invalid