Bug 95716

Summary: Access to the original field value at a set joint point
Product: [Tools] AspectJ Reporter: Nitzan Volman <nitzan>
Component: CompilerAssignee: Adrian Colyer <adrian.colyer>
Status: REOPENED --- QA Contact:
Severity: enhancement    
Priority: P5    
Version: DEVELOPMENT   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Nitzan Volman CLA 2005-05-18 05:09:28 EDT
Should be a way to access the original field value at a set joint point built
into the language.

a possible solution is to add  getOriginalFieldValueAtAFieldSetJoinPoint() 
method to the thisJoinPoint interface.

a usage example would be:
after(Object newValue) returning : set( * *) && args(newValue)  {   
  Object oldValue = 
thisJoinPoint.getOriginalFieldValueAtAFieldSetJoinPoint() ;  
  if (!oldValue.equals(newValue) { 
firePropertyChangeEvent(oldValue,newValue,thisJoinPoint.getSignature());
   }
}
Comment 1 Adrian Colyer CLA 2005-08-26 11:26:18 EDT
We're not going to get to this in AJ 1.5.0. Marking as "LATER" for consideration
in 1.5.1 and future release planning.
Comment 2 Eclipse Webmaster CLA 2009-08-30 02:50:41 EDT
LATER/REMIND bugs are being automatically reopened as P5 because the LATER and REMIND resolutions are deprecated.