tyutNo4 / findbugs

Automatically exported from code.google.com/p/findbugs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

not calling checkError when using java.io.PrintWriter and java.io.PrintStream should be flagged

GoogleCodeExporter opened this issue · comments

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

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