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

Project Coin: diamond erroneously accepts in array initializer expressions

XMLWordPrintable

    • b06
    • unknown
    • generic

        The following program erroneously compiles:

        class Foo<X> {}

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

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: