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

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

XMLWordPrintable

    • Verified

      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.

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

              Created:
              Updated:
              Resolved: