Re: Query regarding index of local variables
Andrew Huntwork <[email protected]>
| Newsgroups | gmane.comp.jakarta.bcel.user |
|---|---|
| Message-ID | <[email protected]> |
you didn't get the error i was expecting because you wrote the code i was going to suggest to avoid it. so it looks like you're in good shape now. Koduru, Rajendra Kumar Reddy wrote: > > Andrew, I did not get that type of error, however could you > please let me know , why were you expecting this?? > in non void methods, I was using > > 1. new ASTORE(x) // storing the result > 2. jsr call // calling jsr > 3. new ALOAD(x) // loading back the result > 4. return // returning the result > > and all the branches were reidrected to 1 (i.e store statement) > in case of non void methods > > so could you please let me know , why were you expecting an > error?? So that I could rectify it > am I right in doing like this??? > > However just to mention, I was also using methodgen.setMaxStack > before returning the isntrumented method