LocalVariable object not able to return full signature that contains generics. Example: I have crated Foo class with the following method: public void test(){ ArrayList<Integer> localVar = new ArrayList<Integer>(); } After creating JavaClass from Foo and accessing test() method and its local variable, signature reported for localVar is "java.util.ArrayList", where Integer generic part is truncated. However, after inspecting the ConstantPool for the Foo class, it does contain CONSTANT_Utf8[1] ("Ljava/util/ArrayList<Ljava/lang/Integer;>;"). Why not simply set the SignatureIndex of the localVar to the correct index within the ConstantPool that also includes the Integer part, or allow LocalVariable to also getAttributes(), where the Signature attribute is properly set to the full signature that includes Integer, as for methods.
please try BCEL trunk
(In reply to comment #1) > please try BCEL trunk Could you please provide more information on BCEL trunk. If BCEL trunk relates to source repository (web access) @ http://svn.apache.org/repos/asf/jakarta/bcel/trunk, I found nothing that helped. Thanks.
Torsten means that you should download & compile a copy of the current trunk version (from the SVN) and see if the bug still appears there.
Charlie is correct. Do you need further help on this? What's the status?