From 6e67698c30cd36705f172a05ac9efbae43bcbc38 Mon Sep 17 00:00:00 2001 From: Athijegannathan Sundararajan Date: Wed, 25 May 2016 11:03:08 +0530 Subject: [PATCH] 8157789: Nashorn sample/test.js should not use undocumented System property Reviewed-by: mchung --- nashorn/samples/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nashorn/samples/test.js b/nashorn/samples/test.js index dfe4b7b937a..217cab164ba 100644 --- a/nashorn/samples/test.js +++ b/nashorn/samples/test.js @@ -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"));