Community
Participate
Working Groups
The recent introduction of filters in feature's includes/requires (see bug 293715) leads to problems when a feature is serialized. The class org.eclipse.pde.internal.core.feature.FeatureData simply writes the filter attribute as a string without encoding the '&' character into the XML entity &. The writeAttribute method of that class needs some escape mechanism when writing the actual value (FeatureData.java line 80).
Needs investigation
Any progress with the investigation? We create features that import platform specific fragments. The feature itself isn't platform specific and contains fragments for all platforms. Without the filters, we get lots of build time warnings about 'Plug-in reference x.y.z cannot be resolved' for all references that doesn't match the current platform. That's because the plug-in itself has a filter.
This is not a priority item and has not been looked at. Assistance from the community would be appreciated.
New Gerrit change created: https://git.eclipse.org/r/83297
Gerrit change https://git.eclipse.org/r/83297 was merged to [master]. Commit: http://git.eclipse.org/c/pde/eclipse.pde.ui.git/commit/?id=22c05f142881289b22e11436831f244d2db36f29
Thanks Martin.
Martin, can you please verify this fix in latest 4.7?
verified by doing serialization of feature data Version: Oxygen (4.7) Build id: I20161205-2000