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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 16
    • 15
    • tools
    • None
    • b16

      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.

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

              Created:
              Updated:
              Resolved: