What is meant by "document context" in JEP 198?

Alan Bateman Alan.Bateman at oracle.com
Fri Nov 25 14:08:10 UTC 2022


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20221125/f0b93de1/attachment-0001.htm>


More information about the core-libs-dev mailing list