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

Lambda Spec: S <= T should lead to = constraints, not <: constraints

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8
    • Component/s: specification
    • Labels:
    • Subcomponent:
    • Verification:
      Verified

      Description

      For soundness and consistency with the subtyping rules and JLS 7, the rules in 18.2.3 need to be changed as follows:

      A constraint formula of the form ⟨S <= T⟩, where S and T are type arguments, is reduced as follows:
      - If T is a type:
      -- If S is a type, the constraint reduces to ***⟨S = T⟩***.

        Attachments

          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: