Summary: | value in the args[] array of thisjoinpoint can be changed by one advice decl and updated values seen in another advice decl | ||
---|---|---|---|
Product: | [Tools] AspectJ | Reporter: | Laurie Hendren <hendren> |
Component: | Compiler | Assignee: | Adrian Colyer <adrian.colyer> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 1.2 | ||
Target Milestone: | 1.2.1 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Laurie Hendren
2004-06-17 04:06:53 EDT
will fix this on Monday... simple matter of taking a defensive copy of the args before handing them out. getArgs() now returns an Object[] with the same behaviour as arguments in a method or in advice parameters: any change to an object reference in the array is not visible outside of the advice body, but any change to the state of an argument (calling a method on a referenced arg object) is visible. Will close the defect once this fix is available in a published build. fix now available in latest jar published from the Aspectj download page. Fix released as part of AspectJ 1.2.1 |