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

ClassCastException in SystemPropertiesConfigParser when using Flway 10.11.0 #26308

Closed
wilkinsona opened this issue Apr 9, 2024 · 3 comments
Closed

Comments

@wilkinsona
Copy link

Describe the bug
Flyway 10.11.0 sets a System property with a Boolean value. This causes a ClassCastException in SystemPropertiesConfigParser as it assumes that all values in the Properties instance will be a String.

Expected behavior
Tolerance of non-String System property values.

To Reproduce

System.getProperties().put("example", false);
Hazelcast.newHazelcastInstance();

Additional context

Anyone using Flyway 10.11.0 and Hazelcast in the same JVM will experience this failure if Flyway has set the system property before a Hazelcast instance is created.

@wilkinsona
Copy link
Author

This has been fixed, but not released, on the Flyway side: flyway/flyway#3866.

@JackPGreen
Copy link
Contributor

Duplicate of #26310

@JackPGreen JackPGreen marked this as a duplicate of #26310 Apr 15, 2024
@JackPGreen
Copy link
Contributor

Thanks for the report @wilkinsona

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants