Many thanks .. Andy. I understood. Regarding the second question, I tried implementing perthis along with @aspect annotation in the aspect java class like below but I am still getting the same error highlighted in blue in my real application.
@Aspect("perthis(getField2() || setField2())")
public abstract class Field2Aspect {
...
...
}
Caused by: java.lang.ClassFormatError: Duplicate method name&signature in class file
I tried implementing perthis around advice methods in aspect java class (eg: @around("perthis(pointcutname())")) but got invalid pointcut error and parse exception. Concrete aspects are defined in XML as mentioned below and would like to have pointcuts configurable and hence, could not employ pointcut _expression_ and perthis in aspect java class.
<concrete-aspect name="aop.field2.MyField2Aspect"
extends="aop.field2.Field2Aspect">
<pointcut name="getField2" _expression_="get(@aop.field2.Field2 * *)" />
<pointcut name="setField2" _expression_="set(@aop.field2.Field2 * *)" />
</concrete-aspect>
Once I find root cause and when it is related to aspectJ, then I will surely reply you with the use case.
Many thanks for your help and please share if you have any comments on the above.
Sridhar Thiyagarajan