a minor inconvenience for me: in my projects I am using the kotlin-spring compiler plugin to make sure that my Spring-annotated classes are automatically
open
.
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?