History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: COR-1019
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Rodrigo B. de Oliveira
Reporter: Andy 2003
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
db4o Core

[TA] Setter Methods doesn't get instrumented for transparent activation

Created: 04/Dec/07 04:38 PM   Updated: 03/Jan/08 08:56 PM
Component/s: None
Affects Version/s: 7.0.19
Fix Version/s: 7.0.24

Time Tracking:
Original Estimate: Not Specified
Remaining Estimate: 0h
Time Spent - 5.77h
Time Spent: 5.77h
Time Spent - 5.77h

File Attachments: 1. Text File ta_activate.patch (2 kb)


Peers: Adriano Verona
Order: 3
Original IDS Estimate: 1 IDD
Resolution Date: 03/Jan/08 01:52 PM
First Response Date: 03/Jan/08 01:52 PM
PSC Recommendation: A3
Labels:
Participants: Andy 2003 and Rodrigo B. de Oliveira
Number of Attachments: 1
Number of Comments: 3


 Description  « Hide
The TA-Instrumantation doesn't instrument setter methods which accessing fields. In following case this results in a bug:

1. Loading an Object fom DB
2. setting a field
3. reading the Object via getter

Currently objects get activated in Step 3. All settings b/4 Step 3 get overwritten.

Solution: objects need to get activated even b/4 write access.

A patch with testcase + fix is attached

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Andy 2003 - 22/Dec/07 09:31 PM
Also make a Test-Case for inherited fields, I got some Problems with the attached patch and calling a setter of an Abstract base Class.

Rodrigo B. de Oliveira - 03/Jan/08 01:52 PM
Fixed by Transparent Update.

Andy 2003 - 03/Jan/08 08:56 PM
there is an Error with the fixed issue, submitted in COR-1066