GitHub user zregvart opened a pull request: https://github.com/apache/camel/pull/1407
CAMEL-9945 Upgrade to jetty 9.3 Java compiler uses the actual return type of the method in the compiled class and as the signature of `org.eclipse.jetty.client.HttpClient::getProtocolHandlers` method changed between Jetty 9.2 and 9.3 in return type it could be compiled and run against both versions, but it could not be compiled with one version and run against another. This commit uses reflection when calling `getProtocolHandlers` method to maintain compatibility with 9.2 and 9.3 versions of Jetty regardless of compile time vs runtime version. You can merge this pull request into a Git repository by running: $ git pull https://github.com/zregvart/camel CAMEL-9945 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/camel/pull/1407.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1407 ---- commit 1c025cc129dce1d70b8f18ba1d9b104669d16255 Author: Zoran Regvart <zo...@regvart.com> Date: 2017-01-18T13:54:00Z CAMEL-9945 Upgrade to jetty 9.3 Java compiler uses the actual return type of the method in the compiled class and as the signature of `org.eclipse.jetty.client.HttpClient::getProtocolHandlers` method changed between Jetty 9.2 and 9.3 in return type it could be compiled and run against both versions, but it could not be compiled with one version and run against another. This commit uses reflection when calling `getProtocolHandlers` method to maintain compatibility with 9.2 and 9.3 versions of Jetty regardless of compile time vs runtime version. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---