Platform ontology bundle installation assumes that bundles must have some .qualifier in bundle version number
GraphBundleEx
constructors that take IVersionedId
as input assume that the qualifier of the version is not empty.
If it is, the code will generate a version number that looks like x.y.z.
which does not pass this pattern match in GraphBundle
:
public GraphBundle(String name, Supplier<TransferableGraph1> source, int hashCode, String id, String version) {
Matcher m = ID_PATTERN.matcher(id);
if (!m.matches())
throw new IllegalArgumentException("Illegal Id, got \""+id+"\"");
m = VERSION_PATTERN.matcher(version);
if (!m.matches())
throw new IllegalArgumentException("Illegal Version, got \""+id+"\", <id>/<major.minor.micro.qualifier> is expected.");
This doesn't necessarily need to be changed, one can always put 0
or 1
etc. as the qualifier as well. This is just to remember the problem in the future.