> On 17 Oct 2016, at 03:21, Hannes Wallnöfer <hannes.wallnoe...@oracle.com> > wrote: > > Hi Esben, > > >> Am 17.10.2016 um 09:11 schrieb Esben Andreasen <es...@esbena.dk >> <mailto:es...@esbena.dk>>: >> >> A. >> Where can I read about such non-ECMA-standard features in Nashorn? >> > > https://wiki.openjdk.java.net/display/Nashorn/Nashorn+extensions > <https://wiki.openjdk.java.net/display/Nashorn/Nashorn+extensions> > > I don’t think the string methods from java.lang.String are contained in that > page because, as Attila said, it is a side effect of using java.lang.String > as JS string representation and transparently exposing Java methods to > scripts.
I was thinking that maybe we shoud switch off Java methods on Nashorn primitives with --no-java. A quick test shows we don’t do that now. Attila.