rzo1 opened a new pull request, #229:
URL: https://github.com/apache/openjpa/pull/229

   https://issues.apache.org/jira/browse/OPENJPA-3022
   
   Follow-up to #225. A field converted as a whole whose element was changed in 
place is not dirty until the flush check from OPENJPA-3019, so a lazy load 
before the flush still put the changed value into the data cache, and it 
survived a rollback.
   
   `storeLoadedState()` now also leaves out such fields 
(`StateManagerImpl.getWholeConvertedChanged()`, read-only, nothing is marked 
dirty during the load).
   
   Found by the Syncope `AnySearchTest`: the `loginDate` changed in 
`@BeforeEach` got cached, so the next test saw no change and wrote nothing. 
`TestConvertedDataCacheRollback` fails without the fix. Full suite passes on 
Derby and H2.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to