Bug 19365 ArrayIndexOutOfBounds: editing Build Path .jar
F2 - File -> New -> Project... - Plug-in Development - Plug-in Project -> Next - set name="asd", Next - Next - select Hello World wizard, Next - Finish -> creates new Project "asd" - select it in the Packages view, right-click -> Properties... - go to Java Build Path page - go to contained Libraries tab - select any of the ECLIPSE_HOME... libraries shown in the list - press Edit... - press OK in the subsequent Variable Extension dialog, get the attached exception
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java
} else if (fAddFolderField.isSelected()) {
				fResult= openClassFolderDialog(null);
				fAdvSettings.put(DIALOGSTORE_SELECTED, 1);
			} else if (fAddContainerField.isSelected()) {
				String selected= fCombo.getText();
				for (int i = 0; i < fDescriptors.length; i++) {
					if (fDescriptors[i].getName().equals(selected)) {
						String title= NewWizardMessages.getString("LibrariesWorkbookPage.ContainerDialog.new.title"); 
						fResult= openContainerDialog(title, new ClasspathContainerWizard(fDescriptors[i]));
						fAdvSettings.put(DIALOGSTORE_CONTAINER_IDX, i);
						break;
					}
				}
				fAdvSettings.put(DIALOGSTORE_SELECTED, 2);
			}
			if (fResult != null) {
				super.okPressed();
			}
			
		}
		
		public CPListElement[] getResult() {
			return fResult;
		}
	}
	
		
					
	
	private static class SourceAttachmentDialog extends StatusDialog implements IStatusChangeListener {