RFR: jsr166 integration 2019-09

Martin Buchholz martinrb at google.com
Thu Sep 12 14:20:12 UTC 2019

On Thu, Sep 12, 2019 at 1:48 AM Remi Forax <forax at 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.

More information about the core-libs-dev mailing list