Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 342466

Summary: Manifest parser allows packages to be seperated by comma and space
Product: [Eclipse Project] Equinox Reporter: Frieder Heugel <frieder.heugel>
Component: FrameworkAssignee: equinox.framework-inbox <equinox.framework-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: tjwatson
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Frieder Heugel CLA 2011-04-11 12:39:44 EDT
Build Identifier: 3.6.2

According to the OSGi core specification the only delimiter for packages in the Import/Export-Package header is , (comma). When deploying a bundle where packages are separated by comma and space Equinox doesn't complain. Moreover when packages are exported that begin with an arabic number Equinox again doesn't complain. Both scenarios fail when using Eclipse Virgo. See http://www.eclipse.org/forums/index.php?t=msg&th=207564&start=0 for more information.

Reproducible: Always
Comment 1 Thomas Watson CLA 2011-04-11 13:04:19 EDT
In the R4.2 core specification: end of section 1.3.2 General Syntax Definitions:

<spec>
Whitespaces between terminals are ignored unless specifically noted. Any 
value that contains a space, a comma, semi-colon, colon, equal sign or any 
other character that is part of a terminal in the grammar must be quoted.
</spec>

As for checking that the package name is valid (i.e. does not start with an arabic number), we don't do any checking for this and I don't really think it is strictly required by the specification to fail installation because of it.