Details
-
Bug
-
Status: Resolved
-
P2
-
Resolution: Fixed
-
7
-
b06
-
unknown
-
generic
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2211205 | 8 | Maurizio Cimadamore | P2 | Closed | Fixed | b01 |
Description
The following program erroneously compiles:
class Foo<X> {}
class BlocksTest {
void test() {
Foo<String>[] fooArr = new Foo<>[]{ };
}
}
class Foo<X> {}
class BlocksTest {
void test() {
Foo<String>[] fooArr = new Foo<>[]{ };
}
}
Attachments
Issue Links
- backported by
-
JDK-2211205 Project Coin: diamond erroneously accepts in array initializer expressions
-
- Closed
-
- relates to
-
JDK-7069870 Parts of the JDK erroneously rely on generic array initializers with diamond
-
- Closed
-