davsclaus commented on code in PR #23766:
URL: https://github.com/apache/camel/pull/23766#discussion_r3356236032
##########
core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultHeadersMapFactory.java:
##########
@@ -29,6 +33,22 @@
*/
public class DefaultHeadersMapFactory implements HeadersMapFactory {
+ static {
+ List<String> keys = new ArrayList<>();
+ for (Field f : Exchange.class.getFields()) {
Review Comment:
There is a ExchangeConstantProvider that carry all those known keys. Can
this be used to avoid reflection, which maybe is also a problem for Quarkus
--
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]