RFR: 8301220: Return value of toArray() of Сollection types from java.base should be trusted [v3]
Tingjun Yuan
duke at openjdk.org
Mon Jan 30 03:16:16 UTC 2023
On Mon, 30 Jan 2023 03:02:33 GMT, Glavo <duke at openjdk.org> wrote:
> > Why not use set of classes?
>
> Because some classes are not visible here (such as `Arrays.ArrayList`).
>
> I'm not sure what the best choice is, so I'm trying to explore the implementation plan.
Only `Arrays.ArrayList` is not visible here. You can change it into package-private.
-------------
PR: https://git.openjdk.org/jdk/pull/12212
More information about the core-libs-dev
mailing list