[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fallsthrough() is an empty method?
#HUANG YUE# <huangyue@pmail.ntu.edu.sg> wrote:
> Hello,I checked all classes implementing interface Unit. The result
> seems strange. All fallsThrough() method contain nothing. Is it an
> empty method? or I mistook?
fallsThrough() is implemented in every concrete implementation of a
Unit, otherwise it's a bug.
Look at soot/jimple/internal/JGotoStmt.java, for instance. Here
fallsThrough() returns false as expected. Note that you should not
use this class directly, but instead use the Jimple constructor:
Jimple.v().newGotoStmt(Unit target)
Cheers,
Navin.