JDK-8047159 : 9.6.4.7: Allow @SafeVarargs on private methods
  • Type: Sub-task
  • Component: specification
  • Sub-Component: language
  • Affected Version: 7,8
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-06-18
  • Updated: 2018-08-03
  • Resolved: 2016-09-27
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 9
9Fixed
Description
In addition to javac changes, the JLS needs to be updated to allow @SafeVarargs on private methods.
Comments
Suspect the only needed specification change would be in 9.6.3.7: -It is a compile-time error if a variable arity method declaration that is neither static nor final is annotated with the SafeVarargs annotation. +It is a compile-time error if a variable arity method declaration that is neither static nor final nor private is annotated with the SafeVarargs annotation.
18-06-2014