changeset 6217:e8b54ae97344

8004316: Printer - tempfile having incorrect extension Reviewed-by: bae, jgodinez
author jviswana
date Wed, 12 Dec 2012 13:28:35 +0800
parents 3c5bf5ed45a9
children fd9e6b4c8488
files src/solaris/classes/sun/print/UnixPrintJob.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/classes/sun/print/UnixPrintJob.java	Mon Dec 03 16:26:47 2012 +0400
+++ b/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);