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
fs2 upgrade 2.2.0 - ClassCastException #1745
Comments
Thanks for the report. This reproduces: > Chunk(0, 0).map(_.toByte).toArray
java.lang.ClassCastException: class [Ljava.lang.Object; cannot be cast to class [B ([Ljava.lang.Object; and [B are in module java.base of loader 'bootstrap') |
I was worried that this could happen. Hoped that tests would catch this, but obviously was too optimistic! Could just deoptimise Also could look into how ArraySeq map is implemented - afaik it's a Seq backed by an Array so should be very similar to what we're doing with Chunk |
Fixed ClassCastException in Chunk#toArray, fixes #1745
Fixed by #1746 |
After upgrading
fs2:2.0.1
tofs2:2.2.0
im getting this stacktrace, it looks there is some optimisation have been done withChunk
I tried with fs2:2.1.0 and everything work fines
if you want to see the whole code it is here =>
regis-leray/fs2-ftp#11
The text was updated successfully, but these errors were encountered: