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
public void dialogFieldChanged(DialogField field) {
			libaryPageDialogFieldChanged(field);
		}
	}
	
	private void libaryPageCustomButtonPressed(DialogField field, int index) {
		CPListElement[] libentries= null;
		switch (index) {
		case IDX_ADDJAR: 
			libentries= openJarFileDialog(null);
			break;
		case IDX_ADDEXT: 
			libentries= openExtJarFileDialog(null);
			break;
		case IDX_ADDVAR: 
			libentries= openVariableSelectionDialog(null);
			break;
		case IDX_ADDADV: 
			AdvancedDialog advDialog= new AdvancedDialog(getShell());
			if (advDialog.open() == advDialog.OK) {
				libentries= advDialog.getResult();
			}
			break;
		case IDX_ATTACH: 
			List selElements= fLibrariesList.getSelectedElements();
			CPListElement selElement= (CPListElement) selElements.get(0);				
			SourceAttachmentDialog dialog= new SourceAttachmentDialog(getShell(), fWorkspaceRoot, selElement.getClasspathEntry());