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

Lambda Spec: Minimize analysis of boxing in most-specific test

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • None
    • specification
    • Verified

      The most-specific test compares an argument expression to boxed and unboxed target types, and prefers the closest match. For top-level arguments, this serves as a means of disambiguation, but is also mostly redundant, given that the strict/loose applicability phases already disambiguate based on boxing.

      In the future it may be useful to eliminate the strict/loose phases. But for now, we should roll back the most-specific behavior to more closely match 7. The only time boxing/unboxing should be taken into account is when comparing return types of functional interfaces.

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

              Created:
              Updated:
              Resolved: