< prev index next >

test/jdk/java/io/PrintWriter/FailingConstructors.java

Print this page

        

@@ -65,11 +65,11 @@
         }
 
         check(exists, file);
 
         try {
-            new PrintWriter(file, null);
+            new PrintWriter(file, (String)null);
             fail();
         } catch(FileNotFoundException|NullPointerException e) {
             pass();
         }
 

@@ -84,11 +84,11 @@
         }
 
         check(exists, file);
 
         try {
-            new PrintWriter(file.getName(), null);
+            new PrintWriter(file.getName(), (String)null);
             fail();
         } catch(FileNotFoundException|NullPointerException e) {
             pass();
         }
 
< prev index next >