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

Add note about Queue and Set collections in section 2.8 of the nashorn guide

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • 8u31
    • docs
    • x86
    • windows_8

      A DESCRIPTION OF THE PROBLEM :
      This section says: "Nashorn interprets Java collections as arrays. You can access collection elements using the index in brackets ([]) and iterate over the values of a collection using the for each statement"

      However, it should be noted that only List and Map collection elements can be accessed using the index in brackets. In particular, this is not true for Queue and Set collection elements.


      URL OF FAULTY DOCUMENTATION :
      http://docs.oracle.com/javase/8/docs/technotes/guides/scripting/nashorn/api.html#sthref23

            rgallard Raymond Gallardo
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: