Program: 66049
Project: 66049
Buggy source:
public void translateFrom(Series series,int iSeriesDefinitionIndex,Chart chart){
  this.getLineAttributes().setVisible(true);
  this.getLineAttributes().setColor(ColorDefinitionImpl.BLACK());
  this.setStacked(false);
  this.setLabel(series.getLabel());
  if (series.getLabelPosition().equals(Position.INSIDE_LITERAL) || series.getLabelPosition().equals(Position.OUTSIDE_LITERAL)) {
    this.setLabelPosition(series.getLabelPosition());
  }
 else {
    this.setLabelPosition(Position.OUTSIDE_LITERAL);
  }
  this.setVisible(series.isVisible());
  if (series.eIsSet(ComponentPackage.eINSTANCE.getSeries_Triggers())) {
    this.getTriggers().addAll(series.getTriggers());
  }
  if (series.eIsSet(ComponentPackage.eINSTANCE.getSeries_DataPoint())) {
    this.setDataPoint(series.getDataPoint());
  }
  if (series.eIsSet(ComponentPackage.eINSTANCE.getSeries_DataDefinition())) {
    this.getDataDefinition().addAll(series.getDataDefinition());
    if (!(series instanceof StockSeries)) {
      for (int length=this.getDataDefinition().size(); length < 4; length++) {
        this.getDataDefinition().add(QueryImpl.create("String_Node_Str"));
      }
    }
  }
  if (series instanceof BarSeries && ((BarSeries)series).getRiserOutline() != null) {
    this.getLineAttributes().setColor(((BarSeries)series).getRiserOutline());
  }
 else   if (series instanceof LineSeries && ((LineSeries)series).getLineAttributes() != null) {
    this.setLineAttributes(((LineSeries)series).getLineAttributes());
  }
  chart.setDimension(ChartDimension.TWO_DIMENSIONAL_LITERAL);
  if (chart instanceof ChartWithAxes) {
    ((ChartWithAxes)chart).getAxes().get(0).setCategoryAxis(true);
    EList<Axis> axes=((ChartWithAxes)chart).getAxes().get(0).getAssociatedAxes();
    for (int i=0; i < axes.size(); i++) {
      axes.get(i).setType(AxisType.LINEAR_LITERAL);
      axes.get(i).setPercent(false);
    }
  }
 else {
    throw new IllegalArgumentException(Messages.getString("String_Node_Str",new Object[]{chart.getClass().getName()},ULocale.getDefault()));
  }
  chart.setSampleData(getConvertedSampleData(chart.getSampleData(),iSeriesDefinitionIndex));
}

Fixed version (ground truth):
public void translateFrom(Series series,int iSeriesDefinitionIndex,Chart chart){
  this.setLabel(series.getLabel());
  if (series.isSetLabelPosition()) {
    if (series.getLabelPosition().equals(Position.INSIDE_LITERAL) || series.getLabelPosition().equals(Position.OUTSIDE_LITERAL)) {
      this.setLabelPosition(series.getLabelPosition());
    }
 else {
      this.setLabelPosition(Position.OUTSIDE_LITERAL);
    }
  }
  if (series.isSetVisible()) {
    this.setVisible(series.isVisible());
  }
  if (series.eIsSet(ComponentPackage.eINSTANCE.getSeries_Triggers())) {
    this.getTriggers().addAll(series.getTriggers());
  }
  if (series.eIsSet(ComponentPackage.eINSTANCE.getSeries_DataPoint())) {
    this.setDataPoint(series.getDataPoint());
  }
  if (series.eIsSet(ComponentPackage.eINSTANCE.getSeries_DataDefinition())) {
    this.getDataDefinition().addAll(series.getDataDefinition());
    if (!(series instanceof StockSeries)) {
      for (int length=this.getDataDefinition().size(); length < 4; length++) {
        this.getDataDefinition().add(QueryImpl.create("String_Node_Str"));
      }
    }
  }
  if (series instanceof BarSeries && ((BarSeries)series).getRiserOutline() != null) {
    this.getLineAttributes().setColor(((BarSeries)series).getRiserOutline());
  }
 else   if (series instanceof LineSeries && ((LineSeries)series).getLineAttributes() != null) {
    this.setLineAttributes(((LineSeries)series).getLineAttributes());
  }
  chart.setDimension(ChartDimension.TWO_DIMENSIONAL_LITERAL);
  if (chart instanceof ChartWithAxes) {
    EList<Axis> axes=((ChartWithAxes)chart).getAxes().get(0).getAssociatedAxes();
    for (int i=0; i < axes.size(); i++) {
      axes.get(i).setType(AxisType.LINEAR_LITERAL);
      axes.get(i).setPercent(false);
    }
  }
 else {
    throw new IllegalArgumentException(Messages.getString("String_Node_Str",new Object[]{chart.getClass().getName()},ULocale.getDefault()));
  }
  chart.setSampleData(getConvertedSampleData(chart.getSampleData(),iSeriesDefinitionIndex));
}