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

Javac crashes with AssertionError in Types.containedBy

XMLWordPrintable

    • b40
    • unknown, x86
    • generic, linux
    • Not verified

      Javac crashes with an assertion error in Types.contained by when compiling the following source:

      import java.util.*;

      class Test {
          <T> void m(T t, List<? super List<T>> list) {}
          void test(List<? super List<?>> list) {
              m("", list);
          }
      }

      In order to reproduce this problem the following command should be executed:

      java -Xbootclasspath/p:/dist/lib/javac.jar -esa -jar dist/lib/javac.jar Test.java

      or, using a JDK 7 compiler:

      javac -J-esa Test.java

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: