On Fri, 27 Jan 2023 12:15:34 GMT, Glavo <d...@openjdk.org> wrote: > > What about Collections.synchronizedCollection and other methods that may > > wrap/delagete to collections from other modules? > > Good question, I missed this point. I think I should provide a helper method > to check whether the collection is trusted.
Maybe you can add an internal annotation and annotate all trusted collection classes with it. ------------- PR: https://git.openjdk.org/jdk/pull/12212