The ClassReader reads a class attribute named NestHost because javac 11 now 
emits such attribute, but because the mojoClassVisitor is configured with ASM6 
(at construction) it fails because ASM knows that the visitor doesn't handle 
such attribute.

ASM doesn't let a visitor ignore nest mate attributes because those attributes 
enable/disable access to private members from an inner class, so if by default 
the visitor ignore this attribute you will get weird IllegalAccessError later 
at runtime.

So the implementer of the mojo visitor has to decide if it's ok to just 
enabling ASM7_EXPERIMENTAL and if the methods visitNestHostExperimental() and 
visitNestMembersExperimental have to be implemented. 


[ Full content available at: 
https://github.com/apache/maven-plugin-tools/pull/14 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to