invariant:ex1
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| invariant:ex1 [2007/02/25 17:32] – created bdefrain | invariant:ex1 [2021/02/05 13:53] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Invariants: Find old tracing ====== | + | [[invariant: |
| + | [[invariant: | ||
| + | [[invariant: | ||
| + | [[invariant: | ||
| + | [[invariant: | ||
| + | [[invariant: | ||
| **Task:** Signal an error for output on the standard output channel '' | **Task:** Signal an error for output on the standard output channel '' | ||
| Line 8: | Line 13: | ||
| package answers; | package answers; | ||
| - | import figures.*; | + | aspect |
| - | + | ||
| - | aspect | + | |
| declare error: | declare error: | ||
| get(java.io.PrintStream System.out) && within(figures..*): | get(java.io.PrintStream System.out) && within(figures..*): | ||
| Line 17: | Line 20: | ||
| </ | </ | ||
| + | < | ||
| Note that this answer does not say that the call to the '' | Note that this answer does not say that the call to the '' | ||
| + | </ | ||
| When you use this on the given system, you'll find one incorrect trace in '' | When you use this on the given system, you'll find one incorrect trace in '' | ||
| + | ---- | ||
| + | |||
| + | Comment out the offending output line and continue with [[invariant: | ||
invariant/ex1.1172421142.txt.gz · Last modified: by bdefrain
