Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0-beta-4
-
Fix Version/s: 1.0-JSR-1
-
Component/s: ast builder
-
Labels:None
-
Number of attachments :
Description
Object[] a = [1]
this currently throws an exception at run time.
It would be convenient if it caused toArray to be called on the List
Activity
blackdrag blackdrag
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | james strachan [ jstrachan ] | Jochen Theodorou [ blackdrag ] |
blackdrag blackdrag
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] | |
| Fix Version/s | 1.0-JSR-1 [ 10964 ] |
Paul King
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
I think this is bad, if you need Object[] you should do something like
Object[] a = new Object[]
{ 1, 2, 3 }People rarely use arrays.