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

15.12.2.5: Describe treatment of generic function types

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 9
    • None
    • specification

    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

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

              Dates

                Created:
                Updated:
                Resolved: