Re: Problem with LocalVariableTypeTable ( java 5.0 )

"Dave Brosius" <[email protected]>
Newsgroups gmane.comp.jakarta.bcel.user
Message-ID <00f201c51230$a73a6780$b67596d1@MBFG>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.