[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: erroneous casts



Hi Anup,

Can you send a copy of your generated Jimple file, jasmin file, and byte
code to us? For example, just set the output to be jimple, jasmin or
classfile.

Cheers,
===========================================================
Feng Qian                             fqian@sable.mcgill.ca

On Sat, 9 Mar 2002, Anup Rao wrote:

> Hello, I hope somebody can give me some hints on how to deal with my
> problem.
>
> I'm using soot as an api (at the Jimple level) to create a class. My
> problem is that the code that soot generates sometimes has unexpected
> (and incorrect) cast statements. This happens even though I'm not
> dealing with any sort of cast expression explicitly.
>
> I have sometimes been able to get rid of these statements by
> reordering the statements that I add to the body.
>
> I have also faced this problem when copying code almost verbatim from
> a javac generated body.
>
> Does anyone have any ideas about what might be causing these cast
> statements?
>
> Thanks.
>
> --
> Anup Rao  |  arao@resnet.gatech.edu  |  MATH/CS  |  Georgia Tech
> "Consistently separating words by spaces became a general custom about
> the tenth century A.D., and lasted until about 1957, when FORTRAN
> abandoned the practice." -Sun FORTRAN Reference Manual
>