Problem with org.objectweb.asm.signature.SignatureReader
We have very strange issue with Java 8 class files and generic type signatures parsing. I have something like:
public class Module { ... }
public class ModuleInfo { private T module;
public void setModule(T module) { this.module = module; }
public T getModule() { return module; }
... }
ClassNode clazzMeta = ... //for the ModuleInfo class ... SignatureReader r = new SignatureReader(clazzMeta.signature); r.acceptType(new SignatureVisitor(Opcodes.ASM6) { });
See the attached full tc.
//This works without any trouble mvn clean package -Dasm.version=6.0
//This no longer works unfortunately mvn clean package -Dasm.version=6.1 mvn clean package -Dasm.version=6.2