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

javac crash with method reference with a type variable as the site

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 8
    • 8
    • tools
    • b109
    • 8
    • b113
    • Verified

    Description

      Below code cause compiler crash in build b109

      import java.util.Collection;
      import java.util.Comparator;

      public interface MyInterface {
          public default <T> void m1(Collection<T> c, Comparator<T> comp) {

          }
          
          public default <T extends Comparable> void m2(Collection<T> c) {
              m1(c, T::compareTo);
          }
      }

      Attachments

        Activity

          People

            vromero Vicente Arturo Romero Zaldivar
            tyan Tristan Yan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: