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

Project Coin: diamond erroneously accepts in array initializer expressions

    XMLWordPrintable

Details

    • b06
    • unknown
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: