exception from asm.commons.LocalVariablesSorterremap
hi,
got a strange exception from mentioned class.. i'm actually using jarjar which
in turn is using asm-commons, but i'm 90% sure the exception is yours.. namely,
when i write:
public void someMethod() {
String line;
// and use it later..
i get:
java.lang.IllegalStateException: Unknown local variable 1
at com.tonicsystems.jarjar.asm.commons.LocalVariablesSorter.remap(Unknown Source)
at com.tonicsystems.jarjar.asm.commons.LocalVariablesSorter.visitFrame(Unknown
Source)
at
com.tonicsystems.jarjar.asm.commons.RemappingMethodAdapter.visitFrame(Unknown
Source)
at com.tonicsystems.jarjar.asm.ClassReader.accept(Unknown Source)
at com.tonicsystems.jarjar.asm.ClassReader.accept(Unknown Source)
at com.tonicsystems.jarjar.ext_util.JarTransformer.process(JarTransformer.java:35)
at
com.tonicsystems.jarjar.ext_util.JarProcessorChain.process(JarProcessorChain.java:31)
....
(never mind about the package names being renamed.. that's what jarjar is about)
Why i'm sure this is a bug is that this exception disappears when i instead write:
public void someMethod() {
String line = null;
// and use it later..
sry, no time to dig for the reason myself.. np, i just work around this myself
but maybe it's a bug you'd like to fix ;)