jdk/test/java/io/FileInputStream/LeadingSlash.java
changeset 5810 e83d67ad8c96
parent 5506 202f599c92aa
child 7668 d4a77089c587
--- 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();