JDK-8081015 : Allow conversion of native arrays to Queue and Collection
  • Type: Bug
  • Component: core-libs
  • Sub-Component: jdk.nashorn
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2015-05-25
  • Updated: 2016-12-22
  • Resolved: 2015-05-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u60Fixed 9 b67Fixed
Related Reports
Relates :  
Description
Currently, JS NativeArray conversion to either List or Deque are supported (since ListAdapter implements these interfaces). However, ListAdapter also implements Queue and Collection too, and we don't support conversion to these types ��� we should.
Comments
As part of the change, we remove the public JSType.toJavaList() and JSType.toJavaDeque() methods and move them as privates to NashornLinker. It is okay to do this, as they aren't used from anywhere else and JSType is a restricted-package class.
25-05-2015