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

Compiler crashes on @FunctionalInterface used on interface with two inherited methods with same signatures

XMLWordPrintable

    • b75
    • 8
    • b82
    • Verified

      Compiler crashes with java.lang.NullPointerException.

      @FunctionalInterface
      interface Baz extends Foo<Integer, Integer> {}

      interface Foo<T, N extends Number> {
          void m(T arg);
          void m(N arg);
      }

      Works fine without @FunctionalInterface.

      JCK test that fails: lang/LMBD/lmbd045/lmbd04501md/lmbd04501md.html

            mcimadamore Maurizio Cimadamore
            vrudomet Victor Rudometov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: