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

Regression: separate compilation causes crash in wildcards inference logic

    XMLWordPrintable

Details

    • b82
    • Verified

    Description

      Steps to reproduce:

      //Foo.java
      interface Foo<X extends Number> {
          void m(X x);
      }

      class FooLib {
          void m(Foo<?> uf) { }
      }

      //Test.java
      class Test {
          void test(FooLib fl) {
              fl.m(x->{});
          }
      }

      javac Foo.java
      javac Test.java

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: