test/java/io/File/NulFile.java

Print this page

        

@@ -610,11 +610,11 @@
             }
         } else {
             try {
                 File.createTempFile(prefix, suffix, directory);
             } catch (IOException ex) {
-                if ("Unable to create temporary file".equals(ex.getMessage()))
+                if (ExceptionMsg.equals(ex.getMessage()))
                     exceptionThrown = true;
             }
         }
         if (!exceptionThrown) {
             throw new RuntimeException("createTempFile() should throw"