Skip to content

Boolean handling #2

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

Closed
wants to merge 1 commit into from
Closed

Boolean handling #2

wants to merge 1 commit into from

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