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

Bug 312291

Summary: BundleException is thrown for empty Import-Package entry
Product: [Eclipse Project] PDE Reporter: Zina Mostafia <zina>
Component: UIAssignee: Darin Wright <darin.eclipse>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: curtis.windatt.public, darin.eclipse
Version: 3.6Flags: curtis.windatt.public: review+
Target Milestone: 3.6 RC1   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch none

Description Zina Mostafia CLA 2010-05-10 12:16:44 EDT
Build Identifier: 3.6

I have a Manifest that has an empty entry 
Import-Package:

I do not have any error or warning in mt problem view from this Manifest, but when I use PDE to get some information from the Manifest, I get a BundleException, this is the stack trace.

org.osgi.framework.BundleException: Invalid manifest header Import-Package: ""
	at org.eclipse.osgi.util.ManifestElement.parseHeader(Unknown Source)
	at org.eclipse.pde.internal.core.project.BundleProjectDescription.parseHeader(Unknown Source)
	at org.eclipse.pde.internal.core.project.BundleProjectDescription.initiaize(Unknown Source)
	at org.eclipse.pde.internal.core.project.BundleProjectDescription.<init>(Unknown Source)
	at org.eclipse.pde.internal.core.project.BundleProjectService.getDescription(Unknown Source) 

Reproducible: Always
Comment 1 Darin Wright CLA 2010-05-10 16:27:47 EDT
Created attachment 167812 [details]
patch

Patch with test
Comment 2 Darin Wright CLA 2010-05-10 16:32:14 EDT
please review, Curtis.
Comment 3 Curtis Windatt CLA 2010-05-10 16:52:49 EDT
+1 fixed in HEAD.