From b3984aaf1bf87c8da2e84797f62180adc405b48a Mon Sep 17 00:00:00 2001 From: Sebastian Ratz Date: Mon, 19 Dec 2022 14:25:48 +0000 Subject: [PATCH] Add 'uses' information to OSGI metadata in MANIFEST.MF When multiple versions of JNA are present in a single OSGI environment, it can happen that OSGI computes an incorrect dependency chain, which can lead to exceptions like the following: This can be addressed by enriching the Export-Package metadata with ;uses="..." information [1]. Fixes #1487. [1] https://spring.io/blog/2008/10/20/understanding-the-osgi-uses-directive/ --- build.xml | 6 +++++- contrib/platform/build.xml | 28 ++++++++++++++-------------- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/build.xml b/build.xml index 5a45679ceb..0855255486 100644 --- a/build.xml +++ b/build.xml @@ -470,7 +470,11 @@ - + diff --git a/contrib/platform/build.xml b/contrib/platform/build.xml index 47fa8ed330..cdbf8db165 100644 --- a/contrib/platform/build.xml +++ b/contrib/platform/build.xml @@ -147,20 +147,20 @@