Looks like there are outstanding issues with OSGi and MR-Jars: https://github.com/bndtools/bnd/issues/2227 <https://github.com/bndtools/bnd/issues/2227>
Since the issue isn’t code but the dependencies not supporting Java 8 anymore, I am not quite sure how MR-Jars would help out here. > On Jan 9, 2023, at 3:44 PM, Les Hazlewood <[email protected] > <mailto:[email protected]>> wrote: > > On Mon, Jan 9, 2023 at 1:13 PM Benjamin Marwell <[email protected] > <mailto:[email protected]>> wrote: > Romain pointed out that MRJars, as Les suggested, have undefined > behaviour in web apps. > > Do you have more information on this? I wasn't aware this is a problem. > > As one counter example, BouncyCastle is one of the most widely used > cryptographic libraries (used in many webapps), and their JDK 8+ libraries > are multi-release jars. > > That said, ideally, even if MR jars are used, the amount of 'stuff' in the MR > folders should be as minimal as possible IMO. Ideally just provider/factory > implementations if/when possible, and/or maybe interfaces that need > additional language/class declarations. > > Thanks, > > Les
