Program: 69140
Project: 69140
Buggy source:
private void changeOverlaySeriesType(){
  if (getCurrentChartType().canCombine()) {
    ChartCacheManager.getInstance().cacheSeriesType(cbSeriesType.getText());
  }
  try {
    Axis XAxis=((ChartWithAxes)chartModel).getAxes().get(0);
    int iSeriesDefinitionIndex=(XAxis.getAssociatedAxes().get(0)).getSeriesDefinitions().size();
    int iOverlaySeriesCount=(XAxis.getAssociatedAxes().get(1)).getSeriesDefinitions().size();
    ChartAdapter.beginIgnoreNotifications();
    for (int i=0; i < iOverlaySeriesCount; i++) {
      Series lastSeries=((XAxis.getAssociatedAxes().get(1)).getSeriesDefinitions().get(i)).getDesignTimeSeries();
      if (!lastSeries.getDisplayName().equals(cbSeriesType.getText())) {
        String name=htSeriesNames.get(cbSeriesType.getText()).getClass().getName();
        Series newSeries=ChartCacheManager.getInstance().findSeries(name,iSeriesDefinitionIndex + i);
        if (newSeries == null) {
          newSeries=htSeriesNames.get(cbSeriesType.getText()).copyInstance();
          newSeries.translateFrom(lastSeries,iSeriesDefinitionIndex,chartModel);
        }
        newSeries.eAdapters().addAll(chartModel.eAdapters());
        ((XAxis.getAssociatedAxes().get(1)).getSeriesDefinitions().get(i)).getSeries().clear();
        ((XAxis.getAssociatedAxes().get(1)).getSeriesDefinitions().get(i)).getSeries().add(newSeries);
        ChartUIUtil.setSeriesName(chartModel);
      }
    }
    ChartWizard.removeException(ChartWizard.TaskSelType_chOvST_ID);
  }
 catch (  Exception e) {
    ChartWizard.showException(ChartWizard.TaskSelType_chOvST_ID,e.getLocalizedMessage());
  }
 finally {
    ChartAdapter.endIgnoreNotifications();
  }
}

Fixed version (ground truth):
private void changeOverlaySeriesType(){
  if (getCurrentChartType().canCombine()) {
    ChartCacheManager.getInstance().cacheSeriesType(cbSeriesType.getText());
  }
  try {
    Axis XAxis=((ChartWithAxes)chartModel).getAxes().get(0);
    int iSeriesDefinitionIndex=(XAxis.getAssociatedAxes().get(0)).getSeriesDefinitions().size();
    int iOverlaySeriesCount=(XAxis.getAssociatedAxes().get(1)).getSeriesDefinitions().size();
    ChartAdapter.beginIgnoreNotifications();
    for (int i=0; i < iOverlaySeriesCount; i++) {
      Series lastSeries=((XAxis.getAssociatedAxes().get(1)).getSeriesDefinitions().get(i)).getDesignTimeSeries();
      if (!lastSeries.getDisplayName().equals(cbSeriesType.getText())) {
        String name=htSeriesNames.get(cbSeriesType.getText()).getClass().getName();
        Series newSeries=ChartCacheManager.getInstance().findSeries(name,iSeriesDefinitionIndex + i);
        if (newSeries == null || newSeries instanceof BarSeries) {
          newSeries=htSeriesNames.get(cbSeriesType.getText()).copyInstance();
          newSeries.translateFrom(lastSeries,iSeriesDefinitionIndex,chartModel);
        }
        newSeries.eAdapters().addAll(chartModel.eAdapters());
        ((XAxis.getAssociatedAxes().get(1)).getSeriesDefinitions().get(i)).getSeries().clear();
        ((XAxis.getAssociatedAxes().get(1)).getSeriesDefinitions().get(i)).getSeries().add(newSeries);
        ChartUIUtil.setSeriesName(chartModel);
      }
    }
    ChartWizard.removeException(ChartWizard.TaskSelType_chOvST_ID);
  }
 catch (  Exception e) {
    ChartWizard.showException(ChartWizard.TaskSelType_chOvST_ID,e.getLocalizedMessage());
  }
 finally {
    ChartAdapter.endIgnoreNotifications();
  }
}