Community
Participate
Working Groups
Invalid version ranges such as [11.2.0.1.0, 11.2.0.1.0] cause the following exception to be thrown: Caused by: java.lang.IllegalArgumentException: invalid format at org.osgi.framework.Version.<init>(Version.java:140) at org.osgi.framework.Version.parseVersion(Version.java:218) at org.eclipse.virgo.util.osgi.VersionRange.<init>(VersionRange.java:78) etc. It would be very helpful to include the version with the invalid format in the exception message to ease diagnosis.
See the URL for this bug for an example of where the diagnostics could have helped.
Don't you think this is a bug for OSGi since Version is a class defined by OSGi?
Perhaps, but I thought the exception message was an implementation detail rather than something that should be spec'd.
Equinox just uses the Version class (and other OSGi classes) as it comes from OSGi and does not make any modifications.
I see. Raised OSGi bug.
And thanks for the advice BJ!