/hg/release/icedtea7-forest-2.6/jdk: 7177216, PR3398, RH1446700:...

andrew at icedtea.classpath.org andrew at icedtea.classpath.org
Wed Jun 7 17:17:47 UTC 2017


changeset a1b7baf74b49 in /hg/release/icedtea7-forest-2.6/jdk
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.6/jdk?cmd=changeset;node=a1b7baf74b49
author: asaha
date: Wed Jun 07 17:32:36 2017 +0100

	7177216, PR3398, RH1446700: native2ascii changes file permissions of input file
	Reviewed-by: sherman, alanb


diffstat:

 src/share/classes/sun/tools/native2ascii/Main.java |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 59204456ee2f -r a1b7baf74b49 src/share/classes/sun/tools/native2ascii/Main.java
--- a/src/share/classes/sun/tools/native2ascii/Main.java	Wed May 17 17:01:57 2017 +0100
+++ b/src/share/classes/sun/tools/native2ascii/Main.java	Wed Jun 07 17:32:36 2017 +0100
@@ -71,7 +71,6 @@
 import java.nio.charset.CharsetEncoder;
 import java.nio.charset.Charset;
 import java.nio.charset.IllegalCharsetNameException;
-import java.nio.file.Files;
 import java.io.UnsupportedEncodingException;
 import java.nio.charset.UnsupportedCharsetException;
 import sun.tools.native2ascii.A2NFilter;
@@ -241,7 +240,9 @@
             if (tempDir == null)
                 tempDir = new File(System.getProperty("user.dir"));
 
-            tempFile = Files.createTempFile(tempDir.toPath(), "_N2A", ".TMP").toFile();
+            tempFile = File.createTempFile("_N2A",
+                                           ".TMP",
+                                            tempDir);
             tempFile.deleteOnExit();
 
             try {
@@ -291,7 +292,9 @@
             File tempDir = f.getParentFile();
             if (tempDir == null)
                 tempDir = new File(System.getProperty("user.dir"));
-            tempFile =  Files.createTempFile(tempDir.toPath(), "_N2A", ".TMP").toFile();
+            tempFile =  File.createTempFile("_N2A",
+                                            ".TMP",
+                                            tempDir);
             tempFile.deleteOnExit();
 
             try {


More information about the distro-pkg-dev mailing list