orpiske commented on PR #9982: URL: https://github.com/apache/camel/pull/9982#issuecomment-1532620874
Folks, so, I tested using an `EnumMap` and it does not trigger the type check issue. The performance is roughly the same for both, and the internal implementation of `EnumMap` is pretty much the same one as we have here (with a much better interface). @davsclaus @essobedo I am not strongly in favor of any solution, but I feel the `EnumMap` one might be a better choice. Even if there is some performance impact, I think we can offset that by fixing other parts of the code that are still being affected by the JDK issue. -- 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: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org