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

Bug 370652

Summary: custom source location causes "Duplicate extra attribute: 'org.eclipse.objectteams.originBaseBundle0'"
Product: [Tools] Objectteams Reporter: Stephan Herrmann <stephan.herrmann>
Component: OTDTAssignee: Stephan Herrmann <stephan.herrmann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 M6   
Hardware: Other   
OS: Linux   
Whiteboard:

Description Stephan Herrmann CLA 2012-02-05 07:46:26 EST
In a fresh OTDT I tried to attach a source folder to the org.eclipse.jdt.core bundle (due to bug 370650). This seemed to work well but caused a build path error:

Duplicate extra attribute: 'org.eclipse.objectteams.originBaseBundle0' in classpath entry '/home/local/eclipse/plugins/org.eclipse.jdt.core_3.7.3.v_OTDT_r202_201201310618.jar' for project 'Reachability'

This extra attribute is added by org.eclipse.objectteams.otdt.internal.compiler.adaptor.AdaptorActivator.JavaCore#addBaseBundleAttribute(..)

It seems we need to cleanup similar attributes which we added previously?
Comment 1 Stephan Herrmann CLA 2012-02-18 15:53:55 EST
Fixed via commit e7b492ac9b748a4588a50dd473201e48b7f8e4ba

When adding a new extra attribute we now just discard pre-existing ones.

While testing this, I found that base imports were not properly checked against the aspect binding when also discouraged/forbidden access was involved. Fixed in BaseImportChecker.
Comment 2 Stephan Herrmann CLA 2012-09-22 16:57:44 EDT
Filed a fup on a related issue: bug 390149, that the main issue here has been verified using build 2.2.0.201209221349.