Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api: Ignore ClassCastExceptions for hard-coded providers #9174

Merged
merged 1 commit into from May 16, 2022

Commits on May 16, 2022

  1. api: Ignore ClassCastExceptions for hard-coded providers

    This was observed in the Bazel/Blaze build where io.grpc.util is a
    separate target from the rest of core. During the build of a library
    SecretRoundRobinLoadBalancerProvider was not on the classpath, and the
    library was later included into a binary using grpc-core from Maven
    Central which includes SecretRoundRobinLoadBalancerProvider.
    
    ```
    java.util.ServiceConfigurationError: Provider io.grpc.util.SecretRoundRobinLoadBalancerProvider$Provider could not be instantiated java.lang.ClassCastException: class io.grpc.util.SecretRoundRobinLoadBalancerProvider$Provider cannot be cast to some.app.aaa.aab
    ```
    ejona86 committed May 16, 2022
    Copy the full SHA
    8cc1360 View commit details
    Browse the repository at this point in the history