Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312291 - BundleException is thrown for empty Import-Package entry
Summary: BundleException is thrown for empty Import-Package entry
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: 3.6 RC1   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-10 12:16 EDT by Zina Mostafia CLA
Modified: 2010-05-10 16:52 EDT (History)
2 users (show)

See Also:
curtis.windatt.public: review+


Attachments
patch (4.93 KB, patch)
2010-05-10 16:27 EDT, Darin Wright CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.