Source files are here: AspectJCFlowsrc.zip. If you need instructions on what do with these files, try here.
Predict the Output
In this exercise, you have all of the information you need to predict the output, unlike Examples 1 - 4.
Code to Review
This example closely follows AspectJ_Example_4, the only changes are the addition of a constructor to the Address class and an update to the pointcuts in FieldSetAspect.
—-
Address.java
Note, just a partial listing.
FieldSetAspect.java
Main.java
Predict the output
In the previous version of Address.java, the constructor did nothing, now the constructor sets one of the fields. So is it changed or not? Review the third pointcut in FieldSetAspect.java. Question, what is the output?
Comments