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

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

    Details

    • Subcomponent:
    • Verification:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: