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

Javac crashes when compiling method reference to static interface method

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 8
    • 8, 8-repo-lambda
    • tools
    • b82
    • Verified

    Description

      This code crashes javac:

      public class StaticMethods {
          private interface SuperInterface {
              public static Object f(Object arg) { return null; }
          }
          public static void main(String... args) {
              Function<Object,Object> methodReference9
                        = SuperInterface::f; // compiler crash
          }
      }

      Attachments

        Activity

          People

            mcimadamore Maurizio Cimadamore
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: