Program: 50656
Project: 50656
Buggy source:
/** 
 * Function to construct all the components and add it to the main panel
 * @author Alec Erasmus <alec.erasmus@a24group.com>
 * @since  22 November 2012
 */
public void constructor(){
  messagePanel=new FlowPanel();
  messageTable=new FlowPanel();
  messageRow=new FlowPanel();
  messageCell=new Label();
  messageContainer=new FlowPanel();
  messageContainer.add(messagePanel);
  messagePanel.setVisible(false);
  mainPanel.add(messagePanel);
  dynamicFormPanel.add(getDynamicForm());
  dynamicFormPanel.addStyleName(displayInline);
  viewPanel.add(getUiBinder());
  viewPanel.setStyleName(displayInline);
  viewPanel.setVisible(false);
  dataPanel.add(dynamicFormPanel);
  dataPanel.add(viewPanel);
  dataPanel.setStyleName(displayInline);
  viewButtons.add(editLabel);
  editLabel.setStyleName(displayInline,true);
  editLabel.setStyleName(languageInputClickLabels,true);
  editLabel.setStyleName(complexLabelButton,true);
  viewButtons.add(removeLabel);
  removeLabel.setStyleName(displayInline,true);
  removeLabel.setStyleName(languageInputClickLabels,true);
  removeLabel.setStyleName(complexLabelButton,true);
  viewButtons.setStyleName(displayInline,true);
  editButtons.add(saveButton);
  saveButton.setStyleName(complexSaveButton);
  editButtons.add(undoButton);
  undoButton.setStyleName(displayInline);
  undoButton.setStyleName(complexUndoButton,true);
  editButtons.setStyleName(displayInline);
  addButton.setStyleName(complexAddButton);
  actionPanel.add(addButton);
  actionPanel.addStyleName(displayInline);
  actionPanel.addStyleName(complexActionContainer);
  mainPanel.add(dataPanel);
  mainPanel.add(actionPanel);
  editLabel.addClickHandler(new ClickHandler(){
    /** 
 * Event cached on click of the component.
 * @author Alec Erasmus <alec.erasmus@a24group.com>
 * @since  22 November 2012
 * @param event - The click event
 */
    @Override public void onClick(    ClickEvent event){
      setEditState();
      mainPanel.removeStyleName(grayRowStyling);
    }
  }
);
  removeLabel.addClickHandler(new ClickHandler(){
    /** 
 * Event cached on click of the component.
 * @author Alec Erasmus <alec.erasmus@a24group.com>
 * @since  22 November 2012
 * @param event - The click event
 */
    @Override public void onClick(    ClickEvent event){
      removeField();
    }
  }
);
  addButton.addClickHandler(new ClickHandler(){
    /** 
 * Event cached on click of the component.
 * @author Alec Erasmus <alec.erasmus@a24group.com>
 * @since  22 November 2012
 * @param event - The click event
 */
    @Override public void onClick(    ClickEvent event){
      addField();
    }
  }
);
  saveButton.addClickHandler(new ClickHandler(){
    /** 
 * Event cached on click of the component.
 * @author Alec Erasmus <alec.erasmus@a24group.com>
 * @since  22 November 2012
 * @param event - The click event
 */
    @Override public void onClick(    ClickEvent event){
      saveField();
    }
  }
);
  undoButton.addClickHandler(new ClickHandler(){
    /** 
 * Event cached on click of the component.
 * @author Alec Erasmus <alec.erasmus@a24group.com>
 * @since  22 November 2012
 * @param event - The click event
 */
    @Override public void onClick(    ClickEvent event){
      addUndo();
    }
  }
);
}

Fixed version (ground truth):
/** 
 * Function to construct all the components and add it to the main panel
 * @author Alec Erasmus <alec.erasmus@a24group.com>
 * @since  22 November 2012
 */
public void constructor(){
  messagePanel=new FlowPanel();
  messageTable=new FlowPanel();
  messageRow=new FlowPanel();
  messageCell=new Label();
  messageContainer=new FlowPanel();
  messageContainer.add(messagePanel);
  messagePanel.setVisible(false);
  mainPanel.add(messagePanel);
  dynamicFormPanel.add(getDynamicForm());
  dynamicFormPanel.addStyleName(displayInline);
  viewPanel.add(getUiBinder());
  viewPanel.setStyleName(displayInline);
  viewPanel.setVisible(false);
  dataPanel.add(dynamicFormPanel);
  dataPanel.add(viewPanel);
  dataPanel.setStyleName(displayInline);
  viewButtons.add(editLabel);
  editLabel.setStyleName(displayInline,true);
  editLabel.setStyleName(languageInputClickLabels,true);
  editLabel.setStyleName(complexLabelButton,true);
  viewButtons.add(removeLabel);
  removeLabel.setStyleName(displayInline,true);
  removeLabel.setStyleName(languageInputClickLabels,true);
  removeLabel.setStyleName(complexLabelButton,true);
  viewButtons.setStyleName(displayInline,true);
  editButtons.add(saveButton);
  saveButton.addStyleName(complexSaveButton);
  editButtons.add(undoButton);
  undoButton.addStyleName(displayInline);
  undoButton.addStyleName(complexUndoButton);
  editButtons.setStyleName(displayInline);
  addButton.setStyleName(complexAddButton);
  actionPanel.add(addButton);
  actionPanel.addStyleName(displayInline);
  actionPanel.addStyleName(complexActionContainer);
  mainPanel.add(dataPanel);
  mainPanel.add(actionPanel);
  editLabel.addClickHandler(new ClickHandler(){
    /** 
 * Event cached on click of the component.
 * @author Alec Erasmus <alec.erasmus@a24group.com>
 * @since  22 November 2012
 * @param event - The click event
 */
    @Override public void onClick(    ClickEvent event){
      setEditState();
      mainPanel.removeStyleName(grayRowStyling);
    }
  }
);
  removeLabel.addClickHandler(new ClickHandler(){
    /** 
 * Event cached on click of the component.
 * @author Alec Erasmus <alec.erasmus@a24group.com>
 * @since  22 November 2012
 * @param event - The click event
 */
    @Override public void onClick(    ClickEvent event){
      removeField();
    }
  }
);
  addButton.addClickHandler(new ClickHandler(){
    /** 
 * Event cached on click of the component.
 * @author Alec Erasmus <alec.erasmus@a24group.com>
 * @since  22 November 2012
 * @param event - The click event
 */
    @Override public void onClick(    ClickEvent event){
      addField();
    }
  }
);
  saveButton.addClickHandler(new ClickHandler(){
    /** 
 * Event cached on click of the component.
 * @author Alec Erasmus <alec.erasmus@a24group.com>
 * @since  22 November 2012
 * @param event - The click event
 */
    @Override public void onClick(    ClickEvent event){
      saveField();
    }
  }
);
  undoButton.addClickHandler(new ClickHandler(){
    /** 
 * Event cached on click of the component.
 * @author Alec Erasmus <alec.erasmus@a24group.com>
 * @since  22 November 2012
 * @param event - The click event
 */
    @Override public void onClick(    ClickEvent event){
      addUndo();
    }
  }
);
}