15.12.2.5: Describe treatment of generic function types

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: