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

Update JavaScript code in JDK for changes in iteration over Java arrays

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P3
    • 8
    • 8
    • core-libs
    • None

    Description

      An upcoming change to Nashorn JDK-8022903 will change the type of indices returned from a for-in iteration over a Java array from String to Integer, e.g. if "a" is a Java array object with at least element, then

      for(var i in a) { print(typeof i); break; }

      will now print "number" instead of "string". While it is highly unlikely this change will break anything, it is nevertheless an externally visible change, so all .js files in the JDK should be assessed for impact and necessary changes made.

      Attachments

        Activity

          People

            attila Attila Szegedi
            attila Attila Szegedi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: