DO NOT REPLY [Bug 42612] New: - accessing full signatures of local variables that contain generics
[email protected] Wed, 6 Jun 2007 22:16:53 -0700 (PDT)
| Newsgroups | gmane.comp.jakarta.bcel.devel |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
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: [email protected]
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.