Project: JDT
Bug 132827 [build path] CE if external archive is added twice
Reported: 2006-03-22 08:40:44 | Status: resolved fixed

I20060321-1210 1. Create new Project 2. Add foobar.jar to project 3. Add foobar.jar to project: org.eclipse.core.runtime.CoreException: Build path contains duplicate entry: 'C:Documents and Settings/beb/Desktop/foobar.jar' for project P01 at org.eclipse.jdt.internal.corext.buildpath.ClasspathModifier.validateAndAddEntry(ClasspathModifier.java:1979) at org.eclipse.jdt.internal.corext.buildpath.ClasspathModifier.setNewEntry(ClasspathModifier.java:1880) at org.eclipse.jdt.internal.ui.wizards.buildpaths.newsourcepage.AddArchiveToBuildpathAction.addExternalJars(AddArchiveToBuildpathAction.java:110) at org.eclipse.jdt.internal.ui.wizards.buildpaths.newsourcepage.AddArchiveToBuildpathAction$1.run(AddArchiveToBuildpathAction.java:78) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)

Files changed in fix:
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/AutomatedSuite.java org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/buildpath/BuildpathModifierActionTest.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewWizardMessages.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/AddArchiveToBuildpathAction.java