-
Bug
-
Resolution: Fixed
-
P3
-
None
-
Verified
A varargs method is applicable only if the element type is accessible at the call site. If the element type is an inference variable (alpha[]), inference is left to figure out which choice for alpha will be accessible. So, in order to support inference, the access check should happen after inference is done.
- relates to
-
JDK-8036953 Fix timing of varargs access check, per JDK-8016205
-
- Closed
-
-
JDK-7013170 varargs: accessibility check missing from JLS 15.12.{2,4}
-
- Closed
-