Problem with LocalVariableTypeTable ( java 5.0 )
"Marco Petris" <[email protected]>
| Newsgroups | gmane.comp.jakarta.bcel.user |
|---|---|
| Organization | http://freemail.web.de/ |
| Message-ID | <[email protected]> |
Hi all,
I have a problem with the LocalVariableTypeTable.
I'v inserted some instructions into a method which has a generic parameter:
public void doSomething( double d, ArrayList<Integer> list ) {
...
}
Loading the class, I get following ClassFormatError:
LVTT entry for 'list' in class file MyClassFile does not match any LVT entry
Looks like the start_pc and length of the local variable 'list' in the LocalVariableTable are adjusted
after inserting some instructions but the entry in the LocalVariableTypeTable has still the old start_pc and length.
Is there a way to manipulate the LocalVariableTable or force a rewrite of its entries?
When I do not use generics, everything works fine:
public void doSomething( double d, ArrayList list ) {
...
}
I've done a CVS checkout of BCEL but it didn't help.
Thanks for any help and comments.
Marco Petris
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193