Program: 69949
Project: 69949
Buggy source:
/** 
 * Resets all member variables within this object recursively Note: Manually written
 */
protected final void initialize(int iAxisType){
  setLabel(LabelImpl.create());
  LineAttributes lia=LineAttributesImpl.create(this,ComponentPackage.eINSTANCE.getAxis_LineAttributes());
  setLineAttributes(lia);
  AxisOrigin ao=AttributeFactory.eINSTANCE.createAxisOrigin();
  ao.setType(IntersectionType.MIN_LITERAL);
  ao.setValue(null);
  setOrigin(ao);
  Label la=LabelImpl.create();
  la.getCaption().setValue("String_Node_Str");
  la.getCaption().getFont().setSize(14);
  la.getCaption().getFont().setBold(true);
  TextAlignment ta=TextAlignmentImpl.create();
  ta.setVerticalAlignment(VerticalAlignment.CENTER_LITERAL);
  ta.setHorizontalAlignment(HorizontalAlignment.CENTER_LITERAL);
  la.getCaption().getFont().setAlignment(ta);
  la.setVisible(false);
  setTitle(la);
  Grid gr=ComponentFactory.eINSTANCE.createGrid();
  lia=LineAttributesImpl.create(gr,ComponentPackage.eINSTANCE.getGrid_LineAttributes());
  lia.setColor(ColorDefinitionImpl.create(196,196,196));
  gr.setLineAttributes(lia);
  lia=LineAttributesImpl.create(gr,ComponentPackage.eINSTANCE.getGrid_LineAttributes());
  lia.setColor(ColorDefinitionImpl.create(196,196,196));
  lia.setVisible(true);
  gr.setTickAttributes(lia);
  setMajorGrid(gr);
  gr=ComponentFactory.eINSTANCE.createGrid();
  lia=LineAttributesImpl.create(gr,ComponentPackage.eINSTANCE.getGrid_LineAttributes());
  lia.setColor(ColorDefinitionImpl.create(225,225,225));
  gr.setLineAttributes(lia);
  lia=LineAttributesImpl.create(gr,ComponentPackage.eINSTANCE.getGrid_LineAttributes());
  lia.setColor(ColorDefinitionImpl.create(225,225,225));
  gr.setTickAttributes(lia);
  setMinorGrid(gr);
  Scale sc=ComponentFactory.eINSTANCE.createScale();
  setScale(sc);
  if (iAxisType == Axis.BASE) {
    setOrientation(Orientation.HORIZONTAL_LITERAL);
    setLabelPosition(Position.ABOVE_LITERAL);
  }
 else   if (iAxisType == Axis.ORTHOGONAL) {
    setOrientation(Orientation.VERTICAL_LITERAL);
    setLabelPosition(Position.RIGHT_LITERAL);
  }
  setOrigin(AxisOriginImpl.create(IntersectionType.MAX_LITERAL,null));
}

Fixed version (ground truth):
/** 
 * Resets all member variables within this object recursively Note: Manually written
 */
protected final void initialize(int iAxisType){
  setLabel(LabelImpl.create());
  LineAttributes lia=LineAttributesImpl.create(null,LineStyle.SOLID_LITERAL,1);
  setLineAttributes(lia);
  AxisOrigin ao=AttributeFactory.eINSTANCE.createAxisOrigin();
  ao.setType(IntersectionType.MIN_LITERAL);
  ao.setValue(null);
  setOrigin(ao);
  setPrimaryAxis(false);
  Label la=LabelImpl.create();
  la.getCaption().setValue("String_Node_Str");
  la.getCaption().getFont().setSize(14);
  la.getCaption().getFont().setBold(true);
  TextAlignment ta=TextAlignmentImpl.create();
  ta.setVerticalAlignment(VerticalAlignment.CENTER_LITERAL);
  ta.setHorizontalAlignment(HorizontalAlignment.CENTER_LITERAL);
  la.getCaption().getFont().setAlignment(ta);
  la.setVisible(false);
  setTitle(la);
  Grid gr=ComponentFactory.eINSTANCE.createGrid();
  lia=LineAttributesImpl.create(ColorDefinitionImpl.create(196,196,196),LineStyle.SOLID_LITERAL,1);
  lia.setVisible(false);
  gr.setLineAttributes(lia);
  lia=LineAttributesImpl.create(ColorDefinitionImpl.create(196,196,196),LineStyle.SOLID_LITERAL,1);
  gr.setTickAttributes(lia);
  gr.setTickStyle(TickStyle.ACROSS_LITERAL);
  setMajorGrid(gr);
  gr=ComponentFactory.eINSTANCE.createGrid();
  lia=LineAttributesImpl.create(ColorDefinitionImpl.create(225,225,225),LineStyle.SOLID_LITERAL,1);
  lia.setVisible(false);
  gr.setLineAttributes(lia);
  lia=LineAttributesImpl.create(ColorDefinitionImpl.create(225,225,225),LineStyle.SOLID_LITERAL,1);
  lia.setVisible(false);
  gr.setTickAttributes(lia);
  gr.setTickStyle(TickStyle.ACROSS_LITERAL);
  setMinorGrid(gr);
  Scale sc=ComponentFactory.eINSTANCE.createScale();
  sc.setMinorGridsPerUnit(5);
  setScale(sc);
  setPercent(false);
  if (iAxisType == Axis.BASE) {
    setOrientation(Orientation.HORIZONTAL_LITERAL);
    setLabelPosition(Position.ABOVE_LITERAL);
  }
 else   if (iAxisType == Axis.ORTHOGONAL) {
    setOrientation(Orientation.VERTICAL_LITERAL);
    setLabelPosition(Position.RIGHT_LITERAL);
  }
  setOrigin(AxisOriginImpl.create(IntersectionType.MAX_LITERAL,null));
}