Port of schuchert.wikispaces.com


AspectJEX4ExpectedVersusActualOutput

AspectJEX4ExpectedVersusActualOutput

Expected Versus Actual Output

Expected Output

Given the code I’ve shown you, you might have predicted the following output:

Saving: class ex3.Address
Saving: class ex3.Address
Saving: class ex3.Address
Saving: class ex3.Address

Actual Output

However, given your experience with other examples, you might not be too surprised if the output is different. It is:

Not saving: class ex3.Address, it is unchanged
Not saving: class ex3.Address, it is unchanged
Saving: class ex3.Address
Not saving: class ex3.Address, it is unchanged

Assignment: Form a Theory

Spend a few moments and try to figure out how to make this output happen. Write down those ideas. Please do so before continuing to the next section.


Comments

" Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.