test/jdk/java/io/PrintWriter/FailingConstructors.java
changeset 48252 77b88d8f8380
parent 47216 71c04702a3d5
--- a/test/jdk/java/io/PrintWriter/FailingConstructors.java	Tue Dec 12 10:21:58 2017 -0800
+++ b/test/jdk/java/io/PrintWriter/FailingConstructors.java	Tue Dec 12 11:10:12 2017 -0800
@@ -67,7 +67,7 @@
         check(exists, file);
 
         try {
-            new PrintWriter(file, null);
+            new PrintWriter(file, (String)null);
             fail();
         } catch(FileNotFoundException|NullPointerException e) {
             pass();
@@ -86,7 +86,7 @@
         check(exists, file);
 
         try {
-            new PrintWriter(file.getName(), null);
+            new PrintWriter(file.getName(), (String)null);
             fail();
         } catch(FileNotFoundException|NullPointerException e) {
             pass();