8138579: Custom launcher fails to start because of permission problem
authorjbachorik
Thu, 08 Oct 2015 09:40:31 +0200
changeset 33268 8db7e6cffaf4
parent 33267 c9211ad104b5
child 33269 df48b609f5b8
child 33315 d2a313368ccb
8138579: Custom launcher fails to start because of permission problem Reviewed-by: sspitsyn, dsamersoff
jdk/test/sun/management/jmxremote/bootstrap/CustomLauncherTest.java
--- a/jdk/test/sun/management/jmxremote/bootstrap/CustomLauncherTest.java	Fri Oct 02 18:49:54 2015 +0200
+++ b/jdk/test/sun/management/jmxremote/bootstrap/CustomLauncherTest.java	Thu Oct 08 09:40:31 2015 +0200
@@ -255,8 +255,7 @@
         // and set the executable flag
         Path localLauncherPath = FS.getPath(WORK_DIR, "launcher");
         Files.copy(launcherPath, localLauncherPath,
-                   StandardCopyOption.REPLACE_EXISTING,
-                   StandardCopyOption.COPY_ATTRIBUTES);
+                   StandardCopyOption.REPLACE_EXISTING);
         if (!Files.isExecutable(localLauncherPath)) {
             Set<PosixFilePermission> perms = new HashSet<>(
                 Files.getPosixFilePermissions(