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

Catch and ignore more errors when reflecting into container subclass #5990

Merged
merged 1 commit into from Oct 14, 2022

Commits on Oct 13, 2022

  1. Catch and ignore more errors when reflecting into container subclass

    With testcontainers#2830 we added support for 4.x of the Cassandra driver.
    It was done in a way to allow a user to use either the 3.x
    or 4.x driver while excluding the other one. However if
    using 4.x and excluding 3.x, GenericContainer#canBeReused
    throws an exception during reflection since the Cluster
    class returned by CassandraContainer#getCluster is missing.
    
    This PR works around that issue by catching and ignoring
    the thrown NoClassDefFoundError.
    akhaku committed Oct 13, 2022
    Configuration menu
    Copy the full SHA
    5bf0bb3 View commit details
    Browse the repository at this point in the history