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

Fix feature methods #61

Merged
merged 1 commit into from
Mar 24, 2015
Merged

Fix feature methods #61

merged 1 commit into from
Mar 24, 2015

Conversation

jhaber
Copy link
Contributor

@jhaber jhaber commented Mar 24, 2015

@cowtowncoder I tried to use the configure method that accepts a JaxRSFeature but it didn't have any effect. After banging my head against a wall for a little bit I looked inside the method and saw that it was ignoring the boolean state parameter and just always enabled the feature. This PR updates the configure method to properly enable/disable based on the boolean parameter and also removes a bunch of extraneous boolean arguments that were also unused.

@jhaber
Copy link
Contributor Author

jhaber commented Mar 24, 2015

Out of curiosity, why roll your own integer-based bitset instead of using an EnumSet?

@cowtowncoder
Copy link
Member

At this point, it's just a cut'n pasted idiom. But back in the day the idea of using less memory (for core streaming API) was the main reason. Nothing deeper than that.

@cowtowncoder
Copy link
Member

Wow. Goes to show that testing of just enabling a feature won't help finding broken-ness of disabling features. Embarrassing.

Thank you for the fix! I'll need to backport it as well.

cowtowncoder added a commit that referenced this pull request Mar 24, 2015
@cowtowncoder cowtowncoder merged commit 90aead7 into FasterXML:master Mar 24, 2015
cowtowncoder added a commit that referenced this pull request Mar 24, 2015
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.

2 participants