JDK-8036953 : Fix timing of varargs access check, per JDK-8016205
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-03-07
  • Updated: 2017-05-17
  • Resolved: 2014-06-17
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
8u40Fixed 9 b20Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
JLS 7 requires the access of a varargs parameter type to be checked during overload resolution, while JLS 8, per JDK-8016205, performs this check afterwards.  javac should follow the specified behavior.  (Legacy behavior should be preserved for -source levels before 8.)
Comments
Release team: Approved for deferral. Please set priority using ILW for this one.
11-03-2014

Defer justification: the distinction between the specified and actual behavior is very subtle.
07-03-2014