Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8156714

Parsing issue with automatic semicolon insertion

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • core-libs
    • None
    • b119
    • generic
    • generic

        This issue was reported in nashorn-dev alias. See http://mail.openjdk.java.net/pipermail/nashorn-dev/2016-May/006125.html

        Simplified test case is as follows:

        File: t.js

        v = function() {
        }

        /**/ function f() {
        }

        With both 8u and latest jdk9-dev, we get

        t.js:4:5 Expected ; but found function
        /**/ function f() {
             ^
        t.js:5:0 Expected eof but found }
        }
        ^

              hannesw Hannes Wallnoefer
              sundar Sundararajan Athijegannathan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: