IllegalArgumentException
with :shrunk
field in custom IPersistentMap
implementation
#2966
Labels
bug
Marks issues describing bugs
released-eap
Marks issues which have had the fixes released in an EAP build
Milestone
After a recent upgrade of Cursive (version
1.13.5
and later), we encountered an issue where tests start to fail with the following error:This error occurs when Cursive tries to access the
:shrunk
field viaclojure.lang.RT.get()
. The key issue is that we are using a custom implementation ofIPersistentMap
, which only allows access to a predefined set of keys. The:shrunk
field is not part of this set, which causes the error.This is a Cursive only error, as running
lein test
doesn't fail.Steps to Reproduce
IPersistentMap
that restricts access to a predefined set of keys.:shrunk
key.IllegalArgumentException
when Cursive tries to access a non-existent:shrunk
field.For a minimal reproduction, please refer to the example repository here: Repro Example.
Additional Context
The root cause is detailed in the README within the provided repo. To summarize, Cursive tries to access the
:shrunk
field, but our customIPersistentMap
does not support this field, leading to an exception. The issue occurs even though the tests pass successfully when run vialein test
.The text was updated successfully, but these errors were encountered: