-
-
Notifications
You must be signed in to change notification settings - Fork 812
jackson-core 2.14.0-rc2 requires OSGi bnd artefacts #824
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
Does #822 solve this? |
Yeah this is a behavior of We suffered that with @Nonnull Sadly no other workaround than avoiding using such enum in annotation attributes when possible since this kind of warning is super annoying for developers. |
To give some further info, the warning is due to the |
This commit upgrades Jackson to 2.14.0-rc2, and uses the new ByteBufferFeeder in Jackson2Tokenizer. Unfortunately, because of FasterXML/jackson-core#478, we had to change the CompilerConventions to suppress class file warnings. Closes gh-29343
Ok. I will revert these changes; and likely publish |
OSGi annotation changes reverted. |
I can confirm that this is fixed in 2.14.0-rc3. Thanks! |
This commit upgrades Jackson to 2.14.0-rc3, which resolves two outstanding issues Spring Framework had with rc2. This commit reverts the changes made due to those issues, see FasterXML/jackson-core#824, and FasterXML/jackson-module-kotlin#582. Closes gh-29405
Good, thank you for verifying @poutsma. |
That would seem to me to be a bug in javac. Is there a documented reason anywhere for this enum exception for compile-time retention in javac? |
Not sure if that's considered as a bug or a feature on OpenJDK side, but that's IMO unlikely to change and past and current versions of OpenJDK all have this behavior, so it look likes we have to live with that. |
Hi,
The Spring Framework is trying to upgrade to Jackson 2.14.0, so that we can set it as our baseline for the upcoming 6.0.x branch, and use the
ByteBufferFeeder
introduced through #478 (thanks!). Unfortunately, when upgrading from 2.13.4 to 2.14.0-rc2 we run into the following warning:(line break added for clarity)
Because we use
-Werror
during compilation, this warning breaks our build. Of course, it can be resolved by adding dependencies to the class path (specificallybiz.aQute.bnd:biz.aQute.bnd.annotation
andorg.osgi:osgi.annotation
), or by changing our build to ignore this specific warning.I still thought it wise to make you aware of this warning, as I am hoping that there is something that can be done, and users can use Jackson 2.14 without getting warnings about missing OSGi artefacts.
The text was updated successfully, but these errors were encountered: