Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.osgi')
-rw-r--r--bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/Framework.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/Framework.java b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/Framework.java
index 06b87ce3f..1d2bdecf1 100644
--- a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/Framework.java
+++ b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/Framework.java
@@ -357,7 +357,12 @@ public class Framework implements EventDispatcher, EventPublisher, Runnable {
} catch (NoSuchElementException e) {
// ignore, use the values parsed so far
}
- value = new Version(major, minor, micro, qualifier).toString();
+ try {
+ value = new Version(major, minor, micro, qualifier).toString();
+ } catch (IllegalArgumentException e) {
+ // must be an invalid qualifier; just ignore it
+ value = new Version(major, minor, micro).toString();
+ }
properties.put(Constants.FRAMEWORK_OS_VERSION, value);
}
}

Back to the top