You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
False error: state sets declared two levels up the hierarchy are not kept across a call #505
Problem. Typestate lookups only see the state sets of a class and its immediate supertypes. A class two levels below the one declaring the sets loses them across a call.
State Refinement Error: found opened(c) but expected unlocked(c)
open() does not mention the lock set, so it should keep unlocked(c).
Cause.AuxStateHandler.getGhostStatesFor collects the class, its superclass and its interfaces, but not their supertypes. It also indexes by simple class name, so two classes with the same simple name in different packages share one lookup.
Fix. Collect the sets over all supertypes, by qualified declaring type.
Activity