`ClassNode#outerClass` has incorrect JavaDocs.
See title. The docs read:
/**
* The internal name of the enclosing class of this class (see {@link
* org.objectweb.asm.Type#getInternalName()}). Must be {@literal null} if this class has no
* enclosing class, or if it is a local or anonymous class.
*/
whereas in fact, the attribute is only populated for anonymous and local classes. It seems to have been erroneously copied from this part of the spec, which is in fact talking about the InnerClasses
attribute.
The correct section is here, since this field is actually populated by the (slightly poorly-named) visitOuterClass
method based on the enclosingMethodOffset
in ClassReader
.