You are reporting this to the wrong language group.

The fact that Java:

A) has a public constructor for Boolean (a type with only 2 possible instances)
B) whose doc string says "Note: It is rarely appropriate to use this 
constructor."
and then
C) goes on to use it in some library functions (reflection, serialization)

are all bugs in *Java*. When they fix them, your problem will go away.

Please submit your bug reports to Oracle, and patches to Open JDK. 

Good luck :)

Rich

On Apr 7, 2012, at 11:41 AM, Steven Obua wrote:


> Well, I am an emotional programmer. And it just hurts when something 
> potentially great like Clojure fucks up big time in the little details.
> 
> I found the problem. It was caused by serializing a record value and later 
> deserializing it:
> 
> ---------------------------------------------------------------------------------------------------------------------------------------------------
> (defrecord M-Node [leaf content])
> 
> (def n (M-Node. false ""))
> 
> (if (:leaf n) "boom" "ok")  ;; returns "ok"
> 
> (def n (load-node (store-node n)))  ;; load-node and store-node are just java 
> serialization/deserialization
> 
> (if (:leaf n) "boom" "ok")  ;; returns "boom"
> ----------------------------------------------------------------------------------------------------------------------------------------------------
> 
> 
> On Saturday, April 7, 2012 4:17:40 PM UTC+1, Aaron Cohen wrote:
> I'm afraid you've managed to convey your emotion, but not what the actual 
> problem you're having is.
> 
> Care to try that again?
> 
> --Aaron
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to