Add support for Java enums, include tests #71

Closed
wants to merge 5 commits into
from

Conversation

Projects
None yet
3 participants
Member

dgottlieb commented Apr 18, 2012

I like the idea that Enum support is only exposed via the ReflectionDBObject. This patch looks good to me, though I wish the OnlineTest didn't stop short on actually testing the values that were read back out from the DB.

ymind commented Apr 19, 2012

I'm so sorry! This is my mistake, I had fixed these problems, please check it.
I'm a newbie for java, thanks for your guidance!

Contributor

trishagee commented Jul 2, 2013

Hi, thanks for the pull request. Unfortunately, supporting Java enums is not as straightforward as it might at first seem, see https://jira.mongodb.org/browse/JAVA-268 for more details. We're going to look into implementing it after the 3.0 release - feel free to check out the 3.0 branch to see how you might implement it there.

Trisha

@trishagee trishagee closed this Jul 2, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment