vigossjjj/json-path

Cannot exclude json-smart dependency

Opened this issue · 2 comments

Hi,

What steps will reproduce the problem?
1. Exclude the json-smart dependency (e.g. in a POM file)
2. Build a new Configuration that is supposed to use Jackson as the JsonProvider

What is the expected output? What do you see instead?

With 0.9.1 this was possible since the json-smart classes were only loaded when 
the default configuration is used. With 1.2.0, the Configuration class has a 
static member DEFAULTS that immediately tries to load json-smart classes. A 
class loading exception follows.

What version of the product are you using? On what operating system?

1.2.0

Please provide any additional information below.

I understand that json-smart is the default json provider and not meant to be 
excluded in 1.2.0. However, I'd like to know if you could switch to a construct 
similar to the one in 0.9.1 that avoids loading json-smart classes when not 
used.

Cheers,
Thorben

Original issue reported on code.google.com by thorben....@camunda.com on 9 Feb 2015 at 10:09

Original comment by kalle.st...@gmail.com on 12 Feb 2015 at 3:22

  • Changed state: Accepted

Original comment by kalle.st...@gmail.com on 12 Feb 2015 at 3:22

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect