Parts of the JDK erroneously rely on generic array initializers with diamond

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 8
    • Affects Version/s: 8
    • Component/s: infrastructure
    • None
    • b01
    • generic
    • generic
    • Not verified

        Recent warning fixes introduced generic array initializers with diamond (e.g., Foo<Bar>[] fooArr = new Foo<>[2];). This compiles due to a bug in the compiler and will not compile once the bug is fixed.

              Assignee:
              J. Duke
              Reporter:
              J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: