Skip to content

Move Jackson Guice adapters into io.druid#1940

Merged
gianm merged 1 commit intoapache:masterfrom
metamx:repackageGuiceJackson
Nov 9, 2015
Merged

Move Jackson Guice adapters into io.druid#1940
gianm merged 1 commit intoapache:masterfrom
metamx:repackageGuiceJackson

Conversation

@drcrallen
Copy link
Copy Markdown
Contributor

  • Removes access to protected methods in com.fasterxml
  • Eliminates druid-common's use of foreign package com.fasterxml

In the case where druid is loaded as a library in an framework that already loads Jackson, if the fasterxml classes and the druid classes are loaded by different classloaders, the protected method access will fail on the druid side. This PR prevents such protected method access by using public methods which were probably not present when the files were first written.

A MORE COMPLETE solution would probably be to migrate to https://github.com/FasterXML/jackson-module-guice at some point in the near future.

* Removes access to protected methods in com.fasterxml
* Eliminates druid-common's use of foreign package com.fasterxml
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line did change, no other changes to the actual logic.

@drcrallen drcrallen added the Bug label Nov 9, 2015
@gianm
Copy link
Copy Markdown
Contributor

gianm commented Nov 9, 2015

DruidCoordinatorTest.testCoordinatorRun:349 expected:<1> but was:<0>

@gianm gianm closed this Nov 9, 2015
@gianm gianm reopened this Nov 9, 2015
@gianm
Copy link
Copy Markdown
Contributor

gianm commented Nov 9, 2015

👍

Looks like this was added in 2.3 by: FasterXML/jackson-databind@5309174

@himanshug
Copy link
Copy Markdown
Contributor

👍 (after travis)

gianm added a commit that referenced this pull request Nov 9, 2015
Move Jackson Guice adapters into io.druid
@gianm gianm merged commit afd67a3 into apache:master Nov 9, 2015
@drcrallen drcrallen deleted the repackageGuiceJackson branch November 9, 2015 22:14
himanshug added a commit that referenced this pull request Nov 19, 2015
[BACKPORT #1940]Move Jackson Guice adapters into io.druid
@gianm gianm added this to the 0.8.3 milestone Dec 1, 2015
@gianm gianm mentioned this pull request Dec 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants