mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
4a10bc3288
This commit refines the preDetermineBeanTypes algorithm that AOT uses to approximate the order of preInstantiateSingletons more closely. Previously, the algorithm assumed that all beans where non-lazy singletons in terms of initialization order, which led to inconsistent order in CGLIB proxy generation. We now explicitly park lazy beans so that their types are determined during a second phase, matching the order of regular initialization order. Closes gh-32669 Co-authored-by: Juergen Hoeller <juergen.hoeller@broadcom.com>