changeset 1862:6b43eb787db4

8172493: Nashorn FX example 3-4 using load for fx: scripts fails to run with latest jdk9 ea build Reviewed-by: hannesw, jlaskey
author sundar
date Tue, 10 Jan 2017 18:50:53 +0530
parents ddc52e727570
children db9349bc7035
files src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/resources/fx/base.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/resources/fx/base.js	Thu Jan 05 19:46:28 2017 +0000
+++ b/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/resources/fx/base.js	Tue Jan 10 18:50:53 2017 +0530
@@ -108,7 +108,7 @@
         }
     });
 
-    Files.walkFileTree(rootDirectories[0], new JRTFSWalker());
+    Files.walkFileTree(rootDirectories.toArray()[0], new JRTFSWalker());
 })();
 
 LOAD_FX_CLASSES(this, "javafx.base");