# HG changeset patch # User sundar # Date 1464154388 -19800 # Node ID a9afb8d928d2f9afaa4b6bd9b7feab524669338f # Parent 9330543436402b8f3bd070524846a464d8143557 8157789: Nashorn sample/test.js should not use undocumented System property Reviewed-by: mchung diff -r 933054343640 -r a9afb8d928d2 nashorn/samples/test.js --- a/nashorn/samples/test.js Wed Jul 05 21:45:40 2017 +0200 +++ b/nashorn/samples/test.js Wed May 25 11:03:08 2016 +0530 @@ -31,4 +31,4 @@ print("Hello World"); var System = Java.type("java.lang.System"); -print(System.getProperty("jdk.launcher.patch.0")); +print(System.getProperty("java.home"));