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 after updating from 3.6.0 to 3.7.1 #47

Closed
fcurts opened this issue Dec 23, 2021 · 1 comment
Closed

ClassCastException after updating from 3.6.0 to 3.7.1 #47

fcurts opened this issue Dec 23, 2021 · 1 comment
Labels

Comments

@fcurts
Copy link

fcurts commented Dec 23, 2021

According to its type signature, RrbTree#ImRrbt.split() returns Tuple2<ImRrbt<E>,ImRrbt<E>>. But after updating to 3.7.1, it actually returns Tuple2<MutRrbt<E>,ImRrbt<E>> (at least in some cases), resulting in the following ClassCastException:

class org.organicdesign.fp.collections.RrbTree$MutRrbt cannot be cast to class org.organicdesign.fp.collections.RrbTree$ImRrbt (org.organicdesign.fp.collections.RrbTree$MutRrbt and org.organicdesign.fp.collections.RrbTree$ImRrbt are in unnamed module of loader 'app')

Same with 3.7.0.

GlenKPeterson added a commit that referenced this issue Dec 24, 2021
… prevent regressions. Thank you, @fcurts, for reporting this
@GlenKPeterson
Copy link
Owner

Thank you for reporting this! Your issue should be fixed in 3.7.2, just deployed to Sonatype.

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

No branches or pull requests

2 participants