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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Introduced In Build:
      b109
    • Introduced In Version:
      8
    • Resolved In Build:
      b113
    • Verification:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: