Why no methods like toList() / toMutableList() / toSet() / toMutableSet() on Java Collection and Stream interfaces ?

Adam Farley8 adam.farley at uk.ibm.com
Tue Mar 19 09:17:09 UTC 2019


Hi Tobias,

It might not help you right now, but you get an account (for the issues 
db) when you become an Author.

The criteria for becoming an author is just pair of small commits. 
Simples!

https://openjdk.java.net/projects/#project-author

Best Regards

Adam Farley 
IBM Runtimes



"discuss" <discuss-bounces at openjdk.java.net> wrote on 19/03/2019 09:04:02:

> From: Tobias Gierke <tobias.gierke at code-sourcery.de>
> To: Zheka Kozlov <orionllmain at gmail.com>
> Cc: discuss at openjdk.java.net
> Date: 19/03/2019 09:05
> Subject: Re: Why no methods like toList() / toMutableList() / toSet
> () / toMutableSet() on Java Collection and Stream interfaces ?
> Sent by: "discuss" <discuss-bounces at openjdk.java.net>
> 
> Hi,
> 
> Thanks for the pointer ! Is there still no way for mere mortals (read: 
> non-OpenJDK committers) to comment or vote on issues ? I couldn't find 
> any "create account" button and a quick Google search turned up a 
> StackOverflow post from 2015 
> (https://urldefense.proofpoint.com/v2/url?
> 
u=https-3A__stackoverflow.com_questions_29379425_where-2Dto-2Dreport-2Dissues-2Dof-2Dopenjdk-2Dwhen-2Dyoure-2Dnot-2Da-2Dopenjdk-2Ddeveloper&d=DwIFaQ&c=jf_iaSHvJObTbx-
> siA1ZOg&r=P5m8KWUXJf-
> 
CeVJc0hDGD9AQ2LkcXDC0PMV9ntVw5Ho&m=Mp73d7F8-4tgJKf8MKSKtIjNJ_2XbjZ1XTlGFBa_Yl8&s=DRh50PXARpMMysp2qY6ndnUFCT7slEY-7w6Z_ZKXEsI&e=
> ) 
> that basically says "Not possible".
> 
> Cheers,
> Tobias
> 
> 
> > Stream.toList(): https://urldefense.proofpoint.com/v2/url?
> 
u=https-3A__bugs.openjdk.java.net_browse_JDK-2D8180352&d=DwIFaQ&c=jf_iaSHvJObTbx-
> siA1ZOg&r=P5m8KWUXJf-
> 
CeVJc0hDGD9AQ2LkcXDC0PMV9ntVw5Ho&m=Mp73d7F8-4tgJKf8MKSKtIjNJ_2XbjZ1XTlGFBa_Yl8&s=RtO7v2Edx4sa5knZWEdbJV05eZZLDf99WLwgw8-
> _h_g&e=
> >
> > вт, 19 мар. 2019 г. в 15:14, Tobias Gierke 
> > <tobias.gierke at code-sourcery.de <mailto:tobias.gierke at code-sourcery.de
>>:
> >
> >     Hi,
> >
> >     This has probably been asked  before but I somehow couldn't find a
> >     JEP
> >     were this proposal got rejected... adding these methods to me
> >     seems like
> >     an easy way to get rid of a lot of boilerplate code.
> >
> >
> >     Cheers,
> >     Tobias
> >
> 

Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU



More information about the discuss mailing list