Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370652 - custom source location causes "Duplicate extra attribute: 'org.eclipse.objectteams.originBaseBundle0'"
Summary: custom source location causes "Duplicate extra attribute: 'org.eclipse.object...
Status: VERIFIED FIXED
Alias: None
Product: Objectteams
Classification: Tools
Component: OTDT (show other bugs)
Version: 2.1   Edit
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: 2.1 M6   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-05 07:46 EST by Stephan Herrmann CLA
Modified: 2012-09-22 16:57 EDT (History)
0 users

See Also:


Attachments

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