I'm trying to extract method and argument names from JAR file using ASM (org.objectweb.asm) library. I use MethodNode.localVariables property to get those argument names.
I know I have to compile java sources using javac -parameters to embed parameter names into the class files, but for some reason MethodNode.localVariables is always null. I can tell that parameter names are available because I'm able to extract them with Java reflection. MethodNode.localVariables is not null only when I use the option -g:vars, which is what I don't want to do.
Is there any reason why ASM can't extract parameter names from classes compiled with the -parameters option?