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

15.12.2.5: Describe treatment of generic function types

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: specification
    • Labels:

      Description

      The more-specific method analysis fails to acknowledge that the function types of two functional interface types being compared may be generic.

      Example:
      interface Foo {
        <T> ArrayList<T> m();
      }
      interface Bar {
        <E> List<E> m();
      }

      Presumably all checks comparing the two function types should be subject to alpha-renaming (8.4.4); and an additional check should ensure that the type parameters are equivalent.

      Similar changes are necessary in 18.5.4.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: