RFR [JDK8]: 7153951: -Xlint:auxiliaryclass
oehrstroem at gmail.com
Tue Sep 25 11:44:25 PDT 2012
2012/9/24 Jonathan Gibbons <jonathan.gibbons at oracle.com>:
> Comment in ClassReader:
> 1021 // The the class is a toplevel class, originating
> from a Java source file,
> Does this work correctly with inner classes, which are initially treated as
> top level classes, but then subsequently converted to inner classes, when
> more of the necessary info is known?
It seems like it works properly. When in ClassReader the test against Kinds.PCK
is done, inner classes do report their owner to be Kinds.TYP.
I have updated the test ClassUsingAuxiliaryClass and SelfClassWithAux
to test that reading auxiliary classes
from compiled classes works, and that inner classes do not trigger the warning.
More information about the compiler-dev