Javac crashes when compiling method reference to static interface method

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 8
    • Affects Version/s: 8, 8-repo-lambda
    • Component/s: tools
    • b82
    • Verified

      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
          }
      }

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

              Created:
              Updated:
              Resolved: