-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ArC: fix creation of synthetic beans
If a synthetic bean creation function is backed by a `Supplier`, `Function`, `RuntimeValue` or a runtime proxy, that creation function is stored into a `Map` during application startup and later retrieved when needed. The key under which it is stored into the `Map` is wrong, as it only contains the name of the implementation class and a hash of bean types and qualifiers. When there are multiple synthetic beans with the same implementation class, types and qualifiers, only one creation function is used for all of them. This commit fixes that by including the synthetic bean identifier in the hash, making creation function key unique for each synthetic bean.
- Loading branch information
Showing
3 changed files
with
18 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