From 7cffa129c33c11665fafd6f4bc47538aaf5cfd69 Mon Sep 17 00:00:00 2001 From: jviswana Date: Wed, 12 Dec 2012 13:28:35 +0800 Subject: [PATCH] 8004316: Printer - tempfile having incorrect extension Reviewed-by: bae, jgodinez --- src/solaris/classes/sun/print/UnixPrintJob.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/solaris/classes/sun/print/UnixPrintJob.java b/src/solaris/classes/sun/print/UnixPrintJob.java index 620cf1cdd..8c797ceb6 100644 --- a/src/solaris/classes/sun/print/UnixPrintJob.java +++ b/src/solaris/classes/sun/print/UnixPrintJob.java @@ -939,7 +939,7 @@ public class UnixPrintJob implements CancelablePrintJob { * 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); -- GitLab