Hi Philipp,
there is an issue with your proposal, with
ArrayListInteger list = new ArrayList(1);
and
ArrayListInteger list = new ArrayList(1, 2);
the first line will create an empty array list, the integer will be used
to define the capacity of the list,
the second line will create a list
Hi,
after fixing some JDK9 related bugs in our build for Groovy we stumbled
over
new SimpleDateFormat(EEE MMM dd HH:mm:ss zzz ,
Locale.US).parse(Thu Jan 01 01:00:00 CET 1970)
failing to parse with
java.text.ParseException: Unparseable date: Thu Jan 01 01:00:00 CET 1970
at
Hi,
I'm Philipp Bibik and a 16 jear old free time developer.
I was born and live in Germany and have only an bad school english,
so sorry for any grammar and spelling mistakes.
I have an idea to improve the Java ArrayList API.
Lists are one of the most imported and used components in the Java
Many people have thought about this kind of thing, but it's complicated.
Many people regret having java constructors (instead of factory methods).
Many people regret how varargs worked out, because generics and arrays
don't mix well.
Many people think java should have List and Map literals.
See
Or Stream.of(1, 2, 3).collect(Collectors.toList()); :-)
-- daniel
On 09/07/15 19:46, Louis Wasserman wrote:
Pavel, what you can do there is new ArrayList(Arrays.asList(1, 2,
3, 4, 5));
On Thu, Jul 9, 2015 at 10:40 AM Pavel Rappo pavel.ra...@oracle.com wrote:
Not quite. You don't have the
What about this variant?
http://cr.openjdk.java.net/~igerasim/8130778/00/webrev/
So, we'll throw SOOB only if the CharSequence is actually a String.
I've also added the same code to insert(int,CharSequence,int,int) for
the sake of symmetry.
Sincerely yours,
Ivan
On 11.07.2015 20:22, Xueming
Hi Jochen,
It is likely that these are caused by the default locale data change to
CLDR with 8008577.
On 7/9/15 10:12 AM, Jochen Theodorou wrote:
Hi,
after fixing some JDK9 related bugs in our build for Groovy we stumbled
over
new SimpleDateFormat(EEE MMM dd HH:mm:ss zzz ,
Philipp,
Wouldn't Arrays.asList
http://docs.oracle.com/javase/8/docs/api/java/util/Arrays.html#asList-T...-
work for you?
e.g.
ListString strings = Arrays.asList(1, 2, 3); or
ListString strings = Arrays.asList(1, 2, 3, 4, five);
Regards,
Kedar
On Thu, Jul 9, 2015 at 8:55 AM, Philipp Bibik
Not quite. You don't have the ability to specify a particular implementation
(e.g. the thing won't work if what you want is, say, LinkedList)
On 9 Jul 2015, at 18:34, kedar mhaswade kedar.mhasw...@gmail.com wrote:
Wouldn't Arrays.asList
Yeah, or LinkedListString strings = new LinkedList(Arrays.asList(1,
2, 3));
But I guess what Phillip really wants is to be able to *express*
ArrayListString
strings = [1, 2, 3]; and I believe there's a reason he can't have it
:-(
On Thu, Jul 9, 2015 at 10:46 AM, Louis Wasserman
On 7/9/2015 3:36 AM, Miroslav Kos wrote:
Hi again,
thanks for valuable feedback - I missed those before. Second version
of a patch:
http://cr.openjdk.java.net/~mkos/8130753/jaxws.02/
issues addressed:
* tt : not backporting correctly changes done in jdk repo, will
fix in standalone
On 9 Jul 2015, at 18:46, Louis Wasserman lowas...@google.com wrote:
what you can do there is new ArrayList(Arrays.asList(1, 2, 3, 4,
5));
Louis, sure we can do this. No problem with that. But what we are really talking
about here (as far as I understand) is a convenience. In my opinion
Sigh, forgot the link to the webrev again.
http://cr.openjdk.java.net/~henryjen/jdk9/8027634/webrev/
Cheers,
Henry
On Jul 9, 2015, at 8:48 PM, Henry Jen henry@oracle.com wrote:
Hi,
Please review proposed patch for JDK-8027634[1]. This patch is to enable java
support command line
Hi,
Please review proposed patch for JDK-8027634[1]. This patch is to enable java
support command line argument file like javac does. The implementation use the
same syntax rule, which is implemented in CommandLine.java[3] with
java.io.StreamTokenizer.
Some early comment is that we probably
Hi again,
thanks for valuable feedback - I missed those before. Second version of
a patch:
http://cr.openjdk.java.net/~mkos/8130753/jaxws.02/
issues addressed:
* tt : not backporting correctly changes done in jdk repo, will
fix in standalone repos
* pre/ {@code : added pre again, in
On Jul 8, 2015, at 8:55 PM, Martin Buchholz marti...@google.com wrote:
On Wed, Jul 8, 2015 at 12:59 AM, Paul Sandoz paul.san...@oracle.com wrote:
The comment remains correct even if 6260652 is fixed.
I can't think up a clearly better one.
I would recommend at least removing the
That means the US locale cannot understand CET as timezone then?
And... it assuming that TimeZone.getTimeZone('Etc/GMT') returns the GMT
timezone, it means the short format for a date changed from using 70 for
the year to 1970? Or is that CLDR related as well?
bye blackdrag
Am 09.07.2015
On 07/09/2015 09:05 PM, Pavel Rappo wrote:
On 9 Jul 2015, at 18:46, Louis Wasserman lowas...@google.com wrote:
what you can do there is new ArrayList(Arrays.asList(1, 2, 3, 4,
5));
Louis, sure we can do this. No problem with that. But what we are really talking
about here (as far as I
ok, so https://bugs.openjdk.java.net/browse/JDK-6712094 tells me that
the long year format is the right one for Locale.UK, and it mentions
also CLDR. So I guess the change to CLDR by default made this change
happen as well.
Am 09.07.2015 21:39, schrieb Jochen Theodorou:
That means the US
On 07/09/2015 01:10 PM, Pavel Rappo wrote:
On 9 Jul 2015, at 20:46, Remi Forax fo...@univ-mlv.fr wrote:
just to be complete , there is also
ArrayListString l = new ArrayList();
Collections.addAll(l, 1, 2, 3, 4, 5);
which avoid the allocation of the intermediary list.
Thanks Remi, I
but both examples set a locale I thought
Am 09.07.2015 21:06, schrieb Naoto Sato:
Hi Jochen,
It is likely that these are caused by the default locale data change to
CLDR with 8008577.
On 7/9/15 10:12 AM, Jochen Theodorou wrote:
Hi,
after fixing some JDK9 related bugs in our build for Groovy
21 matches
Mail list logo