fix usage of replace and file separator in Nashorn tests

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8u60
    • Affects Version/s: 8u60, 9
    • Component/s: 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.

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

                Created:
                Updated:
                Resolved: