RFR: 8301220: Return value of toArray() of Сollection types from java.base should be trusted [v2]
Glavo
duke at openjdk.org
Fri Jan 27 21:05:15 UTC 2023
On Fri, 27 Jan 2023 20:58:40 GMT, Rémi Forax <forax at openjdk.org> wrote:
> I think the simplest solution is to have a non public interface declared inside java.util. Like java.util.RandomAccess, but non public. The main advantage to use an interface is that you can document it and it's easy to find all the implementations.
I think this is feasible, but it should be placed in a sub-package in `jdk.internal`, because some trusted collections are outside `java.util`.
-------------
PR: https://git.openjdk.org/jdk/pull/12212
More information about the core-libs-dev
mailing list