Bug 95716 - Access to the original field value at a set joint point
Summary: Access to the original field value at a set joint point
Status: REOPENED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Windows 2000
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Adrian Colyer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-18 05:09 EDT by Nitzan Volman CLA
Modified: 2009-08-30 02:50 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.