From: "Marco Petris" <[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 ) {
...
}

Can you post a simple example of the problem to BugZilla?

http://issues.apache.org/bugzilla/enter_bug.cgi




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to