changeset 14751:82c075c346e8

8004316: Printer - tempfile having incorrect extension Reviewed-by: bae, jgodinez
author jviswana
date Wed, 12 Dec 2012 13:28:35 +0800
parents 94eed98a7ecb
children 88473191af61
files jdk/src/solaris/classes/sun/print/UnixPrintJob.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/solaris/classes/sun/print/UnixPrintJob.java	Mon Dec 03 16:26:47 2012 +0400
+++ b/jdk/src/solaris/classes/sun/print/UnixPrintJob.java	Wed Dec 12 13:28:35 2012 +0800
@@ -939,7 +939,7 @@
                      * is not removed for some reason, request that it is
                      * removed when the VM exits.
                      */
-                    spoolFile = Files.createTempFile("javaprint", ".ps").toFile();
+                    spoolFile = Files.createTempFile("javaprint", "").toFile();
                     spoolFile.deleteOnExit();
                 }
                 result = new FileOutputStream(spoolFile);