aboutsummaryrefslogtreecommitdiffstats
path: root/container-core/src/main/java/com/yahoo/osgi
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2023-01-06 10:24:00 +0100
committergjoranv <gv@verizonmedia.com>2023-01-09 13:00:13 +0100
commit0a73fdd941994cbeb5ac3f09dfc7f640ed661669 (patch)
tree7dcab8c17a92ccaa7ed734c4975af76907da1164 /container-core/src/main/java/com/yahoo/osgi
parent516a0b0c6ab03e9a6f42b4f08f6964db90970a21 (diff)
Add more improvements to bundle resolution error message:
- Add already installed bundles with same symbolic name. - Only include message for version qualifier if relevant.
Diffstat (limited to 'container-core/src/main/java/com/yahoo/osgi')
-rw-r--r--container-core/src/main/java/com/yahoo/osgi/OsgiImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/container-core/src/main/java/com/yahoo/osgi/OsgiImpl.java b/container-core/src/main/java/com/yahoo/osgi/OsgiImpl.java
index f0f9de9fe36..7d5f1472e45 100644
--- a/container-core/src/main/java/com/yahoo/osgi/OsgiImpl.java
+++ b/container-core/src/main/java/com/yahoo/osgi/OsgiImpl.java
@@ -88,10 +88,10 @@ public class OsgiImpl implements Osgi {
throw new IllegalArgumentException(
"Could not create a component with id '" + spec.classId.getName() +
"'. Tried to load class directly, since no bundle was found for spec: " + spec.bundle +
- ". " + bundleResolutionErrorMessage());
+ ". " + bundleResolutionErrorMessage(spec.bundle));
}
- protected String bundleResolutionErrorMessage() {
+ protected String bundleResolutionErrorMessage(ComponentSpecification bundleSpec) {
return " If a bundle with the same name is installed, there is a either a version mismatch " +
"or the installed bundle's version contains a qualifier string.";
}