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

fix usage of replace and file separator in Nashorn tests

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u60, 9
    • Fix Version/s: 8u60
    • Component/s: core-libs
    • Labels:
      None

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: