Edoardo Luppi
05/05/2025, 9:34 AMobject
(only pure functions, no properties), the object is instantiated eagerly thanks to an optimization (which is good for perf!).
However, if that stateless object is used by an @EagerInitialization
-ed property, there will be a runtime error, as the property is initialized before the optimized object
.Artem Kobzar
05/06/2025, 9:53 AMEdoardo Luppi
05/06/2025, 11:12 AMobject
optimization not being there anymore, is that maybe what you did?Edoardo Luppi
05/06/2025, 11:29 AMPreventive steps taken. The problem was fixed by changing the order of initialization (moving eagerly initialized properties, after the trivial objects initialization), and the test for the case also was added.