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

Project Coin: diamond erroneously accepts in array initializer expressions

    Details

    • Subcomponent:
    • Resolved In Build:
      b06
    • CPU:
      unknown
    • OS:
      generic

      Backports

        Description

        The following program erroneously compiles:

        class Foo<X> {}

        class BlocksTest {
            void test() {
                Foo<String>[] fooArr = new Foo<>[]{ };
            }
        }

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: