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

Inherited generic functional descriptors are merged incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • None
    • tools
    • b82

      This code should not compile:

      class LambdaConv25 {

          interface A {
              <X> void m();
          }

          interface B {
              <X> void m();
          }

          interface C extends A, B { }

          void test() {
              C c = ()->{}; //should fail
          }
      }

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

              Created:
              Updated:
              Resolved: