llowinge commented on issue #2969: URL: https://github.com/apache/camel-quarkus/issues/2969#issuecomment-3606581559
@ppalaga I have a feeling this issue was already resolved by your commit https://github.com/apache/camel-quarkus/commit/10c8517be05ae2d006633f7c78620debfb2708bf. Reading the original issue in camel-k project, i've tried following: ``` from("timer:foo?period=1000") .bean(new Double(10), "intValue"); ``` which fails in native with: ``` Caused by: org.apache.camel.component.bean.MethodNotFoundException: Method with name: intValue not found on bean: 10.0 of type: java.lang.Double at org.apache.camel.component.bean.DefaultBeanProcessorFactory.createBeanProcessor(DefaultBeanProcessorFactory.java:191) at org.apache.camel.reifier.BeanReifier.createProcessor(BeanReifier.java:50) at org.apache.camel.reifier.ProcessorReifier.makeProcessor(ProcessorReifier.java:843) at org.apache.camel.reifier.ProcessorReifier.addRoutes(ProcessorReifier.java:616) at org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:238) ``` And by adding `quarkus.camel.native.reflection.include-patterns=java.lang.Double`, it started working. I've also checked that the `java.lang.Double` was added to `selectedClassNames` of https://github.com/apache/camel-quarkus/blob/210bdde876acc91136fe7156190ce2fbffe095a5/extensions-core/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelNativeImageProcessor.java#L263. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
