Closed p4535992 closed 2 years ago
This is a duplicate to https://github.com/julman99/gson-fire/issues/52. Another solution was discussed there. I'm not a fan of just marking unresolvable dependencies as optional because this way the gson-fire code that needs the internal gson libraries will throw ClassNotFoundExceptions at runtime...
In my use case i'm usin gson-fire version 1.8.5 e Gson 2.8.5.
It’s probably due to the Gson upgrade. The new bundle no longer exports the com.google.gson.internal package. That package is considered internal, i.e. not part of the API so it should never have been exported by the bundle or used by any add-on. The classes in this package can have breaking changes with any release.
The solution is probably to removed the import com.google.gson.internal from the bnd manifest.
I see the solution is already done here: https://github.com/escv/gson-fire/commit/bf14654d2a3cf1f14a44988e7f080708a35be447