Review request for JDK-8134503: support ES6 parsing in Nashorn

Michael Haupt michael.haupt at
Mon Apr 25 12:39:27 UTC 2016

Hi Hannes,

that's a really significant improvement, thanks for taking this on!

There is one thing that I think needs to be addressed. Several occurrences of throw error(...) pass a plain English string, rather than passing the result of a call to AbstractParser.message(...), which stands in the path of message internationalisation. Some invocations of String.format() in this setting pass only a String but no arguments (these will go away automatically when the messages are converted to retrieval).


* - this (in the first chunk) can go away, or should not be commented out:
+        // assert start <= finish;

* - the label here should be indented:
+    private void statementList() {
+        // Accumulate statements until end of list. */
+        while (type != EOF) {
+            switch (type) {
+            case EOF:



> Am 25.04.2016 um 13:49 schrieb Hannes Wallnoefer <hannes.wallnoefer at>:
> Please review JDK-8134503: support ES6 parsing in Nashorn
> The original patch was contributed by Andreas Woess, I just did the integration into Nashorn tip.
> Thanks,
> Hannes


Dr. Michael Haupt | Principal Member of Technical Staff
Phone: +49 331 200 7277 | Fax: +49 331 200 7561
Oracle Java Platform Group | LangTools Team | Nashorn
Oracle Deutschland B.V. & Co. KG | Schiffbauergasse 14 | 14467 Potsdam, Germany

ORACLE Deutschland B.V. & Co. KG | Hauptverwaltung: Riesstraße 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603

Komplementärin: ORACLE Deutschland Verwaltung B.V. | Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Nederland, Nr. 30143697
Geschäftsführer: Alexander van der Ven, Jan Schultheiss, Val Maher
 <>	Oracle is committed to developing practices and products that help protect the environment

More information about the nashorn-dev mailing list