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

NoClassDefFoundError for optional dependency on JsonProviderFactory #22

Closed
oswaldobapvicjr opened this issue Oct 20, 2022 · 0 comments · Fixed by #23
Closed

NoClassDefFoundError for optional dependency on JsonProviderFactory #22

oswaldobapvicjr opened this issue Oct 20, 2022 · 0 comments · Fixed by #23
Assignees
Labels
bug Something isn't working

Comments

@oswaldobapvicjr
Copy link
Owner

Describe the bug
JsonProviderFactory throws a NoClassDefFoundError for an optional (not required) JsonProvider not in the classpath during class loading.

To Reproduce
Steps to reproduce the behavior:

  1. Import jsonmerge with no optional dependency.
  2. Create a new JsonMerger without specifying a concrete Provider (declare a JSON object type instead):
JsonMerger<JsonObject> merger = new JsonMerger<>(JsonObject.class);

Expected behavior
A new JsonMerger with the JsonSmartJsonProvider attached should be created and delivered.

Screenshots
N/A

Additional context
N/A

@oswaldobapvicjr oswaldobapvicjr self-assigned this Oct 20, 2022
@oswaldobapvicjr oswaldobapvicjr added the bug Something isn't working label Oct 20, 2022
@oswaldobapvicjr oswaldobapvicjr linked a pull request Oct 20, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant