[Soot-list] overridden methods

Eric Bodden eric.bodden at mail.mcgill.ca
Thu Jul 30 18:16:29 EDT 2009


Hi. This looks like a bug to me. Can you enter it into our Bugzilla, please?
https://svn.sable.mcgill.ca/bugzilla/

Eric

2009/7/30  <esherman at cse.unl.edu>:
> Hi,
> I have the following questions. If we have 2 classes
>  class Class1 {
>  Type1 t1;
> ....
>  public Type1 returnType() {
>  return t1;
>  }
> }
>
> class Class2 extends Class1 {
>  Type2 t2;
>  ....
>  @Override
>  public Type2 returnType() {
>  return t2;
>  }
> }
>
> where class Type2 extends class Type1.
>
> When the methods of Class2 are iterated over Soot shows 2 methods <Class2:
> Type1 returnType()> and <Class2: Type2 returnType()>. Could you explain me
> why it happens? I expected to see only the latter method.
>
> Thank you,
> Elena Sherman
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>



-- 
Eric Bodden
Software Technology Group
Technical University Darmstadt, Germany


More information about the Soot-list mailing list