-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: EXPOSED-704 ClassCastException when referencing an eager-loaded …
…backReferencedOn with keepLoadedReferencesOutOfTransaction = true Both BackReference and OptionalBackReference classes use Referrers as their delegate class when getValue() is invoked. This means that, when there is no transaction context, the delegate correctly attempts to get a child value from the cache, but incorrectly assumes it will be a SizedIterable (normal for Referrers). This ensures that an attempt is made to store the child value as a LazySizedCollection if it is not found to be a collection itself already.
- Loading branch information
Showing
3 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters