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

Javac crash when type-variable referenced from anonymous inner class

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: