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

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

XMLWordPrintable

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

      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⟩***.

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

              Created:
              Updated:
              Resolved: