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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • core-libs
    • b119
    • generic
    • generic

      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.

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

              Created:
              Updated:
              Resolved: