Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.0-beta-2
-
Fix Version/s: 2.0-beta-3
-
Component/s: Static Type Checker
-
Labels:None
-
Number of attachments :
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.
Activity
Cedric Champeau
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description |
The following code fails:
{code:groovy} Map<String,Integer> foo = new HashMap<String,Integer>() foo.put('foo', 1) {code} |
The following code fails:
{code} Map<String,Integer> foo = new HashMap<String,Integer>() foo.put('foo', 1) {code} because the type checker aligns the V placeholder in <K,V> with {{String}} instead of {{Integer}}. |
Cedric Champeau
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Paul King
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |