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

Lambda Spec: Inference should generate an eq bound from an unboxing constraint

    XMLWordPrintable

Details

    • Verified

    Description

      Given the constraint [alpha -> int], there is only one possible solution: alpha = Integer. But 18.2.2 produces alpha <: Integer instead. This is inconsistent with 5.2, which does _not_ allow a widening reference conversion before unboxing conversion.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: