8223038: JPackage code signing fails on Mac. JDK-8200758-branch
authorssadetsky
Thu, 13 Jun 2019 12:50:17 -0700
branchJDK-8200758-branch
changeset 57402 cd7287fc6f85
parent 57401 8a257decfe24
child 57403 05e411fc4b77
8223038: JPackage code signing fails on Mac. Reviewed-by: almatvee, herrick
src/jdk.jpackage/macosx/classes/jdk/jpackage/internal/MacAppImageBuilder.java
--- a/src/jdk.jpackage/macosx/classes/jdk/jpackage/internal/MacAppImageBuilder.java	Thu Jun 13 12:41:26 2019 -0700
+++ b/src/jdk.jpackage/macosx/classes/jdk/jpackage/internal/MacAppImageBuilder.java	Thu Jun 13 12:50:17 2019 -0700
@@ -914,8 +914,7 @@
 
         Path javaPath = appLocation.resolve("Contents/runtime");
         if (Files.isDirectory(javaPath)) {
-            Files.list(javaPath)
-                    .forEach(signIdentifiedByPList);
+            signIdentifiedByPList.accept(javaPath);
 
             ioe = toThrow.get();
             if (ioe != null) {