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

Details

    • b75
    • 8
    • b82
    • Verified

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: