Community
Participate
Working Groups
We currently have two VersionedName classes: org.eclipse.equinox.internal.p2.installer.VersionedName org.eclipse.equinox.internal.p2.publisher.VersionedName I think we need only one and that it should be available as: org.eclipse.equinox.internal.provisional.p2.core.VersionedName where it could live adjacent to Version, VersionRange, etc.
Created attachment 133234 [details] Patch that removes the duplicated VersionName class This patch contains three things: 1. The code changes needed to move the VersionedName from the publisher package to the core package. 2. A StringHelper class in the core package. Needed since the getArrayFromString() method was no longer accessible. 3. Tests that verifies that the StringHelper.getArrayFromString() returns the same thing as its predecessor and that it executes about 3 times faster. A future patch should remove all implementations of getArrayFromString() and use the StringHelper variant instead. There are currently 5 duplicates of this method (6 counting the one in StringHelper) but changing that touches a lot of files. Post M7 maybe?
Marking as 3.5M7 since it would be nice to be able to use this when fixing the multiple IU's issue in the director.
Created attachment 133546 [details] Replacement for the now stale previous patch This patch also fixes the problem with VersionedName.toString() mentioned in bug 268138, comment 32.
I'll release.
The new VersionedName class was already released, but I released the remainder of the patch.