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

fix usage of replace and file separator in Nashorn tests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u60
    • 8u60, 9
    • core-libs
    • None

        Two tests (JDK-8050964.js, JDK-8055034.js) contain code like this: "s.replaceAll(/\//g, File.separater)". Instead of replaceAll, replace must be called (replaceAll is a Java method that does not accept a JS regex). File.separater is a typo; it must be File.separator.

              mhaupt Michael Haupt
              mhaupt Michael Haupt
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: