Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 305845 - ConcurrentModificationException in PDE core (3.6M6)
Summary: ConcurrentModificationException in PDE core (3.6M6)
Status: CLOSED DUPLICATE of bug 305429
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-15 09:04 EDT by Nicolas Bros CLA
Modified: 2010-03-15 09:08 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Bros CLA 2010-03-15 09:04:43 EDT
org.eclipse.pde.internal.core.bundle.BundleModel#load iterates over a bundle's headers. In the iteration loop, it calls Bundle#setHeader, which if its value parameter is null or empty removes the key from the headers map.

This causes a ConcurrentModificationException:

java.util.ConcurrentModificationException
at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1031)
at java.util.TreeMap$EntryIterator.next(TreeMap.java:1052)
at java.util.TreeMap$EntryIterator.next(TreeMap.java:1050)
at org.eclipse.pde.internal.core.bundle.BundleModel.load(BundleModel.java:66)
at org.eclipse.pde.internal.core.WorkspaceModelManager.loadModel(WorkspaceModelManager.java:247)
at org.eclipse.pde.internal.core.WorkspacePluginModelManager.createModel(WorkspacePluginModelManager.java:65)
at org.eclipse.pde.internal.core.WorkspaceModelManager.visit(WorkspaceModelManager.java:147)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:68)
...

This happens if you happen to have an empty section in a MANIFEST.MF. For example, I had: "Bundle-Vendor: "

I think this is a regression from the previous milestone, since it worked for me in 3.6M5.
Comment 1 Darin Wright CLA 2010-03-15 09:08:24 EDT

*** This bug has been marked as a duplicate of bug 305429 ***