changeset 5622:d6c538499353

8004316: Printer - tempfile having incorrect extension Reviewed-by: bae, jgodinez
author jviswana
date Wed, 12 Dec 2012 13:28:35 +0800
parents 11093adbb875
children f1909d3ab2a1 22d7494cdf88
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	Fri Nov 30 17:24:54 2012 +0800
+++ 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);