Teodor Irkhin
01/31/2025, 10:01 AMRiccardo Lippolis
01/31/2025, 10:11 AMopen
.
However, sometimes I have classes that are not annotated with any Spring annotation, but instead they are exposed as a Spring bean in a @Configuration
class. In that case I have to manually make the class open
, otherwise Spring will use some nasty proxying to do any aspect-related things happening in the class (e.g. to support an @Cacheable
or @Transactional
annotated function), which in turn can lead to some weird errors.
It might be nice if the IDE warns me for this, indicating that a class is used in a bean configuration, but it (or its public functions) is not open for extension?wakingrufus
02/05/2025, 10:19 PMPatrik Zelena
02/11/2025, 8:03 AMJacob
02/12/2025, 10:38 PM