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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: infrastructure
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b01
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Backports

        Description

        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.

          Issue Links

            Activity

            Hide
            duke J. Duke (Inactive) added a comment -
            BT2:EVALUATION

            This is a bug since it is not compliant with the JLS SE 7 draft.
            Show
            duke J. Duke (Inactive) added a comment - BT2:EVALUATION This is a bug since it is not compliant with the JLS SE 7 draft.
            Hide
            bcbeck Brian Beck added a comment -
            Transitioned from Resolved to Closed / Not Verified on behalf of mikhail.kondratyev@oracle.com.
            Show
            bcbeck Brian Beck added a comment - Transitioned from Resolved to Closed / Not Verified on behalf of mikhail.kondratyev@oracle.com .

              People

              • Assignee:
                duke J. Duke (Inactive)
                Reporter:
                duke J. Duke (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: