hibernate-orm
hibernate-orm copied to clipboard
HHH-14244 Force dirty mark on write to uninitialized lazy property
The generated field writer method is modified.
I added a check to detect an uninitialized lazy field and force marking it dirty. But that check is only usefull when the new value is the default for the type (null/0/false...). For other values, the existing comparison is enough to mark the dirty. So, the new code is only triggered when received the default value, to avoid doing the check too frequently
Usually PR is targeting master branch rather than some specific version branch, so when it is merged to master, core team member can determine whether to back port to 5.4 or not, in addition to merging to current 5.5 branch.
@Sanne @dreab8 It seems there is some good stuff here. Could you take a look when you have time?
Usually PR is targeting
masterbranch rather than some specific version branch, so when it is merged to master, core team member can determine whether to back port to 5.4 or not, in addition to merging to current 5.5 branch.
I was primarly interested on 5.4, so... :-) However, the branch applies verbatim on master and gradle build is ok as well.
Usually PR is targeting
masterbranch rather than some specific version branch, so when it is merged to master, core team member can determine whether to back port to 5.4 or not, in addition to merging to current 5.5 branch.I was primarly interested on 5.4, so... :-) However, the branch applies verbatim on master and gradle build is ok as well.
well, targeting master branch is more future-proof, :). Also, it would motive code reviewers much more as a generic patch, as opposed to a branch patch only.
Many thanks @pludov , this seems a rather important fix, but I'm rusty on ASM. I need to set aside some proper review time next week.