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
Java: run nondet-initialize method *after* initialization
Previously this method was run after each supertype of a relevant type
was initialised, e.g. if MyClass <: MySupertype <: Object, then
MyClass.cproverNondetInitialize would get run after my inner Object was
set up, then again after MySupertype was set up, then one more time after
the whole class was set up. Now it will only run after the whole initialisation
is complete.
This fixes a bug where array members could have inconsistent length and data field
values because they had not been initialised yet, leading to an assertion failure
during nondetInitialize, and also has the desirable side-effect that an initialiser
will still be run when creating a subtype.
0 commit comments