-
-
Notifications
You must be signed in to change notification settings - Fork 179
Missing "exports" statement #421
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
Comments
Hmm, we are declaring The massive caveat is that I haven't actually done anything with Java modules and don't have a very good understanding of it. Perhaps we're using ModiTect wrong? |
The databind module, which is the owner of |
Dup of #409? Note that fix would be in 2.12.2. |
@cowtowncoder @dinomite It seems like you fixed it in 2.12.2. Adding following export statement should fix the issue |
@adrianw3 I am hoping to release 2.12.2 soon. |
This issue is closed because |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
I can't add the kotlin module to an ObjectMapper due to the following error:
Symbol is declared in module 'com.fasterxml.jackson.kotlin' which does not export package 'com.fasterxml.jackson.module.kotlin'
Module-info has the following entries
As a result, it is not possible to use the kotlin module in the way described in README.
To Reproduce
Create java module, and try to use one of the methods described in README to add kotlin module.
Expected behavior
I should be able to use one of the methods described in README.
Versions
Jackson-module-kotlin: 2.12.1
Jackson-databind: 2.12.1
Additional context
It works if you use a classpath. In the case of java modules, it would throw an error because of the lack of exports. The only way to use it is to load Kotlin Module by ServiceLoader. I would strongly suggest adding necessary exports since SeviceLoader is not widely used and README is misleading.
The text was updated successfully, but these errors were encountered: