Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
2.0-beta-2
-
None
Description
The following code fails:
Map<String,Integer> foo = new HashMap<String,Integer>() foo.put('foo', 1)
because the type checker aligns the V placeholder in <K,V> with String instead of Integer.