Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7115044 Umbrella: Add support for lambda expressions
  3. JDK-7132880

Resolve should support nested resolution contexts

XMLWordPrintable

    • b30
    • unknown
    • generic
    • Verified

      A lambda expression can cause overload resolution to run recursively - consider the following case where we havea lambda in method context:

      m(x->x.size())

      Here we have an 'outer' call context, for 'm' - when a suitable overload candidate is found, the lambda needs to be attributed using that candidate's formal as target type - this means that we effectively recursively step into overload resolution (this time for x.size()). Resolve.java should be able to handle nested resolution context.

            mcimadamore Maurizio Cimadamore
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: