Menu

#11 Check specifications for model methods with bodies

open
nobody
2
2013-10-27
2002-12-27
David Cok
No

Model methods with bodies and specifications do not have
any runtime-assertion checking code created for them,
and hence there is no check that the specs are correcct
or honored.

Discussion

  • Joseph Kiniry

    Joseph Kiniry - 2002-12-31

    Logged In: YES
    user_id=42011

    There are some legitimate alternatives to the "no check"
    option, all of which are more useful than nothing in my
    opinion. The two that I like are:

    1. Check to an arbitrary, user-defined (with a default) but
    finite recursion depth. Some Eiffel systems support this
    option.

    2. A language I helped develop called JJ had two aspects
    that supported this feature:
    a. visibility of methods in dependent checks impacted
    assertion checking --- if a method with wider visibility
    called a method (normal or model) with narrower visibility
    (e.g., public to private), then then assertion was not
    checked. In all other cases (narrow to wide or equal) it was.
    b. call trace analysis (track all call traces through the
    infrastructure and do cycle detection)

     
  • Yoonsik Cheon

    Yoonsik Cheon - 2003-01-11
    • priority: 5 --> 2
     
  • Gary T. Leavens

    Gary T. Leavens - 2003-04-22

    Logged In: YES
    user_id=633675

    The problem may be that model methods are executing
    during the evaluation of some other assertion, hence their
    specifications are always disabled.

     
  • Gary T. Leavens

    Gary T. Leavens - 2003-04-22
    • summary: no spec checks for model methods --> Check specifications for model methods with bodies
     
  • Gary T. Leavens

    Gary T. Leavens - 2003-04-22
    • milestone: --> self_reported
     
  • Yoonsik Cheon

    Yoonsik Cheon - 2005-08-25
    • assigned_to: cheon --> nobody
     

Log in to post a comment.