Skip to content
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

Consider Date primitive #235

Merged
merged 1 commit into from
Dec 31, 2013
Merged

Consider Date primitive #235

merged 1 commit into from
Dec 31, 2013

Conversation

kentongray
Copy link
Contributor

I was having issues with Yoga breaking date handling in comparison to how plain Jersey did it. Jersey would serialize an epoch int where as Yoga would just give me { }. I tracked it down into the PojoProperty and it was calling ObjectUtil.isPrimitive(). By adding Date to the list of primitives this solves this issue.

I can't imagine any time you would ever want to get the date object or use a selector on it (seeing as how it only has one non-deprecated method). I checked and do not see any reason this should cause issues and all tests passed.

Let me know what you think. I've been able to work around this via extending PojoProperty but I feel like this is more the desired behavior.

This allows jersey/jax-ws to handle date representation (by default
epoch)
@jkovacs
Copy link
Contributor

jkovacs commented Dec 28, 2013

+1, see also issue #162

@carterpage
Copy link
Member

Jackson still seems to have some problems with dates, but this is a step in the right direction.

carterpage added a commit that referenced this pull request Dec 31, 2013
@carterpage carterpage merged commit 79808d4 into skyscreamer:master Dec 31, 2013
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