In the following code, OS_OPEN_STREAM_EXCEPTION_PATH is not detected :
public static void dumb(OutputStream out) throws Exception { out.write(1); } public static void bad3() throws Exception { OutputStream os = new FileOutputStream(new File("/dev/null")); // Expecting OS here dumb(os); os.flush(); os.close(); }
Attach capture of missing detection in findbugs 2.0.3 for Eclipse
Hi Andrey,
Could elaborate on this rejection ?
This use case seems quite legitimate to me.
Thanks for your feedback
Development moved to https://github.com/spotbugs/spotbugs !
Please if you have a bug and can reproduce it, create an issue at
https://github.com/spotbugs/spotbugs/issues .
This bug tracker and this project are effectively dead, no one will respond here because development moved to https://github.com/spotbugs/spotbugs.
Please read this for details:
https://mailman.cs.umd.edu/pipermail/findbugs-discuss/2016-November/004321.html
https://mailman.cs.umd.edu/pipermail/findbugs-discuss/2017-September/004383.html
Thanks ! Ill check with the latest spotbugs version and if I can still reproduce i'll fill an issue.
Off topic, regarding this project rename/fork, if possible, if would be nice to provide information of such change (for existing & new developpers, and for SEO) everywhere it is possible :
http://findbugs.sourceforge.net/
https://en.wikipedia.org/wiki/FindBugs
Maybe remove/delete this fork which appears before spotbugs in common search engine results :
https://github.com/findbugsproject/findbugs
Inform the author of this post of the change so she/he can update the reference/name
http://www.vogella.com/tutorials/Findbugs/article.html
(I noticed it was perfectly done for the eclipse plugin :
https://marketplace.eclipse.org/content/findbugs-eclipse-plugin
Thanks you for creating/providing/mainting this great peace of sofware !
Last edit: Olivier J. 2017-10-22
https://github.com/spotbugs/spotbugs/issues/469