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

Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • core-libs
    • None
    • b105
    • generic
    • generic

      We want for..in and for..each..in constructs to work for Java arrays, lists and maps (see JDK-8022903). It'd be nice if Array.prototype's iterator functions like forEach, map, filter etc. work on Java arrays and lists. Per ECMAScript spec. these are 'generic' functions and can work for host objects other than script arrays, script array-like objects. Already we support cross-global objects (script object mirrors) already.

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

              Created:
              Updated:
              Resolved: