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

Inherited generic functional descriptors are merged incorrectly

    XMLWordPrintable

Details

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

    Description

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: