On 25/11/2022 13:27, Ethan McCue wrote:
...huh

>>The recent removal of Nashorn has indicated several places were
>> javascript were used in the JDK mainly due to it's built-in support for
>> parsing JSON//None of those seem like they would have been using nashorn in the past, so i wonder what this is referring to.

The quoted text seems to be from a mail that Magnus Ihse Bursie sent to the discuss list in 2020 [1]. It's the same date that JDK-8242934 [1] was created so it may be that the mail was (at least partly) prompted by the need to change the test  for`jfr print --json`. The test for that feature used to use Nashorn and had to be changed to use a JSON parser in the test suite. The JSON parser was subsequently moved to test/lib/jdk/test/lib/json/JSONValue.java so it could be used by other tests.

-Alan

[1] https://mail.openjdk.org/pipermail/discuss/2020-April/005398.html
[2] https://bugs.openjdk.org/browse/JDK-8242934

Reply via email to