-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P2
-
Affects Version/s: 7
-
Component/s: tools
-
b06
-
unknown
-
generic
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
|---|---|---|---|---|---|---|
| JDK-2211205 | 8 | Maurizio Cimadamore | P2 | Closed | Fixed | b01 |
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<>[]{ };
}
}
- 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
-