RFR: Here are some URLClassPath patches

Martin Buchholz martinrb at google.com
Fri Feb 23 22:09:02 UTC 2018


[+Paul]

On Fri, Feb 23, 2018 at 6:28 AM, Alan Bateman <Alan.Bateman at oracle.com>
wrote:

>
> 8198484: URLClassPath should use an ArrayDeque instead of a Stack
> http://cr.openjdk.java.net/~martin/webrevs/jdk/URLClassPath-ArrayDeque/
> https://bugs.openjdk.java.net/browse/JDK-8198484
>
> Can copyToArrayDeque use addAll?
>

Not directly, because addAll uses a lambda, and it's too early in the
bootstrap for lambdas.

We could delambdafy ArrayDeque, plausibly because ArrayDeque is a
super-core class, perhaps reengineering ArrayDeque(Collection) and/or
addAll(Collection).

Or perhaps lambda team has a plan to allow lambdas to be used in corest of
core java sometime soon?


More information about the core-libs-dev mailing list