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

Javac crash when type-variable referenced from anonymous inner class

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 8
    • 8, 8-repo-lambda
    • tools
    • None

      This program crashes javac:

      class Foo<X> { }

      class Test {
         <Z> void test() {
              String s = new Foo<Z>() { };
         }
      }

      Failure is in the diagnostic subsystem - when generating 'where' clauses.

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

              Created:
              Updated:
              Resolved: