Details
-
Enhancement
-
Resolution: Fixed
-
P2
-
8, 8-repo-lambda
-
b86
-
Not verified
Description
There's an increased demand for supporting method resolution steps featuring different method check logic (other than the standard one based on subtyping). Examples:
-) arity-based check (a method is applicable if the number of arguments 'fits' the method signature)
-) existence check (a method is applicable regardless of actuals/formals)
Currently javac is 'faking' some of those custom logics by relying on error types (as an error types in javac is compatible with anything). It would be nice to have explicit support for ad-hoc resolution checks.
-) arity-based check (a method is applicable if the number of arguments 'fits' the method signature)
-) existence check (a method is applicable regardless of actuals/formals)
Currently javac is 'faking' some of those custom logics by relying on error types (as an error types in javac is compatible with anything). It would be nice to have explicit support for ad-hoc resolution checks.
Attachments
Issue Links
- relates to
-
JDK-8010923 Avoid redundant speculative attribution
- Closed