Javac crash when type-variable referenced from anonymous inner class

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • 8
    • Affects Version/s: 8, 8-repo-lambda
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: