-
Bug
-
Resolution: Fixed
-
P5
-
8
Clarification is requested for the process of identifying an enclosing instance for a method reference of the form Inner::new (where 'Inner' is an inner class).
15.13.1:
"It is a compile-time error if the method reference expression is of the form ClassType :: [TypeArguments] new and a compile-time error would occur when determining an enclosing instance for ClassType as specified in §15.9.2 (treating the method reference expression as if it were ***an unqualified*** class instance creation expression)."
15.13:
"The immediately enclosing instance of a new inner class instance (§15.9.2) ***is*** provided by a lexically enclosing instance of this (§8.1.3)."
15.13.1:
"It is a compile-time error if the method reference expression is of the form ClassType :: [TypeArguments] new and a compile-time error would occur when determining an enclosing instance for ClassType as specified in §15.9.2 (treating the method reference expression as if it were ***an unqualified*** class instance creation expression)."
15.13:
"The immediately enclosing instance of a new inner class instance (§15.9.2) ***is*** provided by a lexically enclosing instance of this (§8.1.3)."