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

Code completion not working for lambdas in method invocations that require type inference

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 16
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b16

      Description

      Consider, for example:
      ---
      jshell> <T> void m1(T t, Consumer<T> f) { }
      | created method m1(T,Consumer<T>)

      jshell> m1("", x -> {x.tri
      ---

      Press <tab> after "tri" - this will yield no proposals.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jlahoda Jan Lahoda
              Reporter:
              jlahoda Jan Lahoda
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: