spark85 / json-path

Automatically exported from code.google.com/p/json-path
0 stars 0 forks source link

Cannot exclude json-smart dependency #68

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago

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