User Tools

Site Tools


tracing:ex3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tracing:ex3 [2008/10/06 17:41] bdefraintracing:ex3 [2021/02/05 13:55] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +[[tracing:intro|Intro]]
 +[[tracing:ex1|Ex1]]
 +[[tracing:ex2|Ex2]]
 +[[tracing:ex3|Ex3]]
 ====== Context: Points in groups ====== ====== Context: Points in groups ======
  
Line 21: Line 25:
 Add similar advice to ensure that a ''Point'' is never added to more than one ''Group''. If this invariant is violated, the advice should throw an ''IllegalStateException'' that uses the string representation of the first group as its message. Add similar advice to ensure that a ''Point'' is never added to more than one ''Group''. If this invariant is violated, the advice should throw an ''IllegalStateException'' that uses the string representation of the first group as its message.
  
-<note hint>+Take a look a the implementation of the test case to see what is precisely expected. 
 + 
 +<note tip>
 Use an inter-type field declaration to associate a field of type ''Group'' with each ''Point'' object. Check and set this field from the advice. Use an inter-type field declaration to associate a field of type ''Group'' with each ''Point'' object. Check and set this field from the advice.
 </note> </note>
tracing/ex3.1223307669.txt.gz · Last modified: 2008/10/06 17:41 by bdefrain