[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SootMethod.getDeclaringClass()
Soot currently incorrectly handles code compiled with 1.4.x versions
of javac. What you describe is one of the symptoms of this. It will be
fixed in the next release, very soon.
Ondrej
On Mon, Nov 04, 2002 at 01:03:57PM -0500, Ankush Varma wrote:
>
> I just upgraded to JDK1.4.1, and am detecting anomalous behaviour in the
> SootMethod class. In particular, consider the following scenario:
>
> - Class C declares method M
> - Class B extends C.
>
> B.getMethod(M.getSubSignature).declaringClass() should return C, since the
> method M is declared in C, and not overridden by B. However, the SootClass B is
> actually returned.
>
> Is there some way to get around this? Are there unreleased versions of
> SootClass/SootMethod that fix this problem?
>
> Ankush