Community
Participate
Working Groups
Created attachment 126141 [details] Test that provokes the bug The VersionRange parser is not able to parse a "raw" version with format and/or original version. Any valid version string passed to the range parser should yield the range ">= version". A range expressed like this: raw:2.1.0.M/format(n[.n=0;[.n=0;]][d?S=M;]):2.1 or raw:2.1.0.M/:2.1 results in: java.lang.IllegalArgumentException: Format "format(r(.r)*p?)" was unable to parse 2.1.0.M/format(n[.n=0;[.n=0;]][d?S=M;]):2.1 at org.eclipse.equinox.internal.provisional.p2.core.VersionFormat.parse(VersionFormat.java:1214) at org.eclipse.equinox.internal.provisional.p2.core.VersionFormat.parseRaw(VersionFormat.java:1049) at org.eclipse.equinox.internal.provisional.p2.core.VersionRange.<init>(VersionRange.java:230)
Created attachment 126142 [details] Patch for the VersionParser that fixes the problem
Thanks Thomas, patch and test released.