JDK-8157680 : Callback parameter of any JS builtin implementation should accept any Callable
  • Type: Bug
  • Component: core-libs
  • Sub-Component: jdk.nashorn
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2016-05-24
  • Updated: 2016-10-13
  • Resolved: 2016-05-25
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
8u112Fixed 9 b121Fixed
Description
Many JS builtin functions have callback function arguments. Nashorn allows any Callable to be passed in certain places. In few place, it is expected to be a ScriptFunction! We should uniformly allow any Callable to be passed as callback argument for all JS builtin functions.