DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=42612>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42612 Summary: accessing full signatures of local variables that contain generics Product: BCEL Version: 5.2 Platform: PC OS/Version: Windows XP Status: NEW Severity: enhancement Priority: P2 Component: Main AssignedTo: bcel-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] 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. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]