After upgrading an application, I’ve got the following error:
Caused by: java.lang.UnsupportedOperationException: Cannot inject value of class: class BeanA into: static beans.BeanA RouteX.beanA
`@Component
public class RouteX extends RouteBuilder {
@BeanInject
static BeanA beanA;
public static BeanA getBeanA() {
return beanA;
}`
@Component class BeanA @Autowired constructor(val ***)
camel version: 4.4.2
springboot version: 3.2.5
jdk: 21
The code worked before the upgrade fine with jdk11 and 21.
Any ideas?