JDK-8184239 : Fix broken nashorn/samples
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: jdk.nashorn
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-07-12
  • Updated: 2017-07-20
  • Resolved: 2017-07-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 10
10 b16Fixed
Description
jjs -fx barchart_weather.js 
Caused by: java.lang.RuntimeException: java.io.IOException: Server returned HTTP response code: 401 for URL: http://api.openweathermap.org/data/2.5/forecast?q=chennai,india&units=metric&mode=json 

jjs -fx colorfulcircles.fx 
Caused by: fx:bootstrap.js:47 TypeError: Cannot load script from colorfulcircles.fx 
Doesn't work in JDK8 either 

jjs -fx datepick.js 
Caused by: datepick.js:48 ReferenceError: "Scene" is not defined 
Works in JDK8 

jjs -fx jsonviewer.js 
Caused by: java.lang.RuntimeException: java.io.IOException: Server returned HTTP response code: 401 for URL: http://api.openweathermap.org/data/2.5/forecast/daily?q=Chennai&mode=json&units=metric&cnt=7` 
Doesn't work in JDK8