On Fri, 27 Jan 2023 20:58:40 GMT, Rémi Forax <fo...@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

Reply via email to