RFR: 8011697(ScriptEngine "js" randomly means either "rhino" or "nashorn", but should instead select one)
srinivas.dama at oracle.com
Tue Jan 30 09:17:21 UTC 2018
Please review the revised webrev at http://cr.openjdk.java.net/~sdama/8011697/webrev.01/ for https://bugs.openjdk.java.net/browse/JDK-8011697
From: Alan Bateman
Sent: Monday, December 11, 2017 10:05 PM
To: Srinivas Dama <srinivas.dama at oracle.com>; core-libs-dev at openjdk.java.net
Subject: Re: RFR: 8011697(ScriptEngine "js" randomly means either "rhino" or "nashorn", but should instead select one)
On 11/12/2017 15:26, Srinivas Dama wrote:
> Please review http://cr.openjdk.java.net/~sdama/8011697/webrev.00/
> for https://bugs.openjdk.java.net/browse/JDK-8011697
> Fix is to make sure ScriptEngineManager always returns a particular engine on all platforms consistently.
I assume using a TreeSet would work too. A different approach is replace engineSpis with nameToFactory and extensionToFactory maps so that the getEngineByXXX methods don't need to a sequential search.
More information about the core-libs-dev