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

ES6 for..of should work on Java Iterables and Java arrays

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b119
    • CPU:
      generic
    • OS:
      generic

      Description

      for..of statement works only for ScriptObjects that implement ES6 iterables. We want "for each" extension to be replaced by "for..of" as much as possible. It'd be nice if for..of works on Java Iterables and arrays. double[] and int[] work with for..of because these are wrapped as NativeArrays - but not for other Java arrays.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sundar Sundararajan Athijegannathan
              Reporter:
              sundar Sundararajan Athijegannathan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: