On Thu, Sep 12, 2019 at 1:48 AM Remi Forax <fo...@univ-mlv.fr> wrote:

> This remember me something,
> we should refactor most of the the package-private final methods (and the
> corresponding constructors) at least inside java.lang/java.util to make
> them private, there is no need to make them package-private anymore given
> that since Java 11 the compiler emits nestmate attributes instead of
> generating the method access$XXX.
>
> Maybe i should write a bytecode analyzer for that ?
>

Right! Going the other way it was fairly easy to trawl through the
generated bytecode using javap looking for "access$".
I don't think the nestmates feature is really complete until there is an
easy tool to find all the package-private elements accessed only within
their nest.

Reply via email to