Merge
authorasaha
Mon, 27 Jun 2011 12:35:31 -0700
changeset 10905 238185ac17e8
parent 10904 4b1c225ccb29 (current diff)
parent 10903 dfb253adb28f (diff)
child 10906 18ee92f0c62f
Merge
--- a/jdk/src/windows/classes/java/lang/ProcessImpl.java	Mon Jun 27 12:30:30 2011 -0700
+++ b/jdk/src/windows/classes/java/lang/ProcessImpl.java	Mon Jun 27 12:35:31 2011 -0700
@@ -60,10 +60,11 @@
         throws IOException
     {
         if (append) {
+            String path = f.getPath();
             SecurityManager sm = System.getSecurityManager();
             if (sm != null)
-                sm.checkWrite(f.getPath());
-            long handle = openForAtomicAppend(f.getPath());
+                sm.checkWrite(path);
+            long handle = openForAtomicAppend(path);
             final FileDescriptor fd = new FileDescriptor();
             fdAccess.setHandle(fd, handle);
             return AccessController.doPrivileged(