@@ -0,0 +1,599 @@
+package sfBugs;%0D%0A%0D%0Aimport java.io.File;%0D%0Aimport java.io.FileNotFoundException;%0D%0Aimport java.io.FileOutputStream;%0D%0A%0D%0Apublic class Bug2843453 %7B%0D%0A%09/**%0D%0A%09 * An extending class.%0D%0A%09 * %0D%0A%09 * Note: the issue does not occur when using %7B@link FileOutputStream%7D directly.%0D%0A%09 */%0D%0A%09static class ExtendFileOutputStream extends FileOutputStream %7B%0D%0A%09%09ExtendFileOutputStream(File base) throws FileNotFoundException %7B%0D%0A%09%09%09super(base, true);%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%0D%0A%09void exposeIssue() throws Exception %7B%0D%0A%09%09File file = new File(%22someFile.txt%22);%0D%0A%09%09FileOutputStream fos = new ExtendFileOutputStream(file);%0D%0A%09%09fos.close();%0D%0A%09%7D%0D%0A%7D%0D%0A

Add sample code for bug 2843453 which crashes reproducibly.