Skip to content

Boolean handling#2

Closed
saivlis wants to merge 1 commit intoclojure:masterfrom
saivlis:master
Closed

Boolean handling#2
saivlis wants to merge 1 commit intoclojure:masterfrom
saivlis:master

Conversation

@saivlis
Copy link

@saivlis saivlis commented Oct 22, 2013

The problem are boolean attributes because they are converted into Booleans when Reflection is used to call the getter but not to Boolean.TRUE and Boolean.FALSE. Therefore, the return value needs to be converted using clojure.lang.Reflector/prepRet.

handling for Boolean return types in from-java
similar to clojure.core.bean
@nningego
Copy link

Any updates on merging this? Thanks for the PR!

@puredanger
Copy link
Member

This project does not accept PR contributions (see https://github.com/clojure/java.data/blob/master/CONTRIBUTING.md). Issues and patches should be filed on the JIRA system at https://dev.clojure.org/jira/browse/JDATA.

Just from a glance, it's usually a bad idea to call directly into Reflector, which is considered an implementation class inside Clojure, subject to change. I think you could get the same effect with code similar to prepRet that you write directly.

I'm going to close this PR here, but feel free to file it as an issue with the equivalent patch.

@puredanger puredanger closed this Oct 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants