Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8016202

Lambda Spec: derive inference constraints from non-overloaded, non-generic method references

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • None
    • specification

      When there is no overloading at all for a method, nor any type parameters, inference still treats a reference to that method as stuck until it can determine parameter types. This surprises users, who expect the method reference to have an obvious, bottom-up type, just like a variable reference.

      When a method is not overloaded and not generic, it's straightforward to identify the type constraints without waiting for the parameter types to be inferred.

            dlsmith Dan Smith
            dlsmith Dan Smith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: