Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 18772 Details for
Bug 87956
compiling error on jdk1.5 collection generics
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Test case
X.java (text/plain), 667 bytes, created by
Olivier Thomann
on 2005-03-14 13:37:22 EST
(
hide
)
Description:
Test case
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-03-14 13:37:22 EST
Size:
667 bytes
patch
obsolete
>import java.util.*; > >public class X { > public static String[] convertList(Collection<String> list){ > String[] ret = new String[list.size()]; > Iterator<String> it = list.iterator(); > for( int i=0; it.hasNext(); i++ ){ > ret[i] = it.next(); > } > return ret; > } > > public static int[] convertList(Collection<Integer> list){ > int[] ret = new int[list.size()]; > Iterator<Integer> it = list.iterator(); > for( int i=0; it.hasNext(); i++ ){ > ret[i] = (it.next()).intValue(); > } > return ret; > } > > public static void main(String[] args) { > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 87956
: 18772