--- a/jdk/test/java/io/FileInputStream/LeadingSlash.java Fri Jun 18 20:59:13 2010 +0100
+++ b/jdk/test/java/io/FileInputStream/LeadingSlash.java Sat Jun 19 15:17:36 2010 +0100
@@ -36,8 +36,8 @@
File file = null;
try {
file = File.createTempFile("bug", "4487368");
- new FileInputStream("\\" + file.getPath());
- new FileOutputStream("\\" + file.getPath());
+ new FileInputStream("\\" + file.getPath()).close();
+ new FileOutputStream("\\" + file.getPath()).close();
} finally {
if (file != null)
file.delete();