-
Notifications
You must be signed in to change notification settings - Fork 4
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
cannot store Clojure::Object in Ref? #3
Comments
i added some debug output -- it turns out that |
Ah-ha, I see. Why are you trying to store this in a Ref? Maybe I'm not understanding the use case... |
the actual use case be an object graph that also includes collections (PersistentVector, for example) of ClojureObjects. i just tried to boil it down as far as possible to nail the bug. |
so, are you saying that a Clojure::Object does not belong in a ref, charlie? can you elaborate why not? |
No, I'm not saying that...it's just not a case I had considered. The bug here appears to be that we're not properly calculating the hashcode for your Foo class because there's some additional internal wiring needed for Clojure::Object types. I'll have a look. |
Hmm, I just tried your example with cloby master and jruby master and did not get an error. Do you still get this? |
yes, same error with jruby-head. BTW, did you have a look a my bug fix? i simply copied two guard clauses over from RubyBasicObject, and for me this works. |
given the following code:
i get this:
The text was updated successfully, but these errors were encountered: