Program: 50654
Project: 50654
Buggy source:
/** 
 * Class constructor
 * @param inputField - The input field that should be displayed on the dynamic form
 * @param label - The label that should be displayed above the input field
 * @param embeded - Whether the component is an embeded object or not
 * @param layout - The layout of the field. If an incorrect value is passed, it will default to vertical
 * @param customStyleName - The custom style to apply to the field
 */
public Field(InputField inputField,String label,boolean embeded,int layout,String customStyleName){
  initWidget(container);
  this.inputField=inputField;
  this.fieldLabel.setText(label);
  if (!this.fieldLabel.getText().equals("String_Node_Str")) {
    this.container.add(this.fieldLabel);
  }
  this.fieldLabel.addStyleName(labelStyleName);
  this.container.add(this.inputFieldContainer);
  this.inputFieldContainer.add(this.inputField.getInputFieldWidget());
  this.inputFieldContainer.add(this.requiredStar);
  this.requiredStar.setVisible(this.inputField.isRequired());
  this.inputField.getInputFieldWidget().addStyleName(inputFieldStyleName);
  if (!customStyleName.equals("String_Node_Str")) {
    this.addStyleName(customStyleName);
  }
  if (embeded) {
    this.container.setStyleName(containerEmbeddedStyleName);
    this.inputField.getInputFieldWidget().addStyleName(inputFieldAdditionalEmbeddedStyleName);
  }
 else {
    this.inputField.getInputFieldWidget().addStyleName(inputFieldAdditionalNormalStyleName);
    this.container.addStyleName(containerDefaultStyleName);
    this.requiredStar.addStyleName(requiredIndicatorStyle);
    this.inputField.setReadOnly(readOnly);
  }
switch (layout) {
case DynamicForm.LAYOUT_HORIZONTAL:
    this.container.addStyleName(horizontalDefaultStyleName);
  this.container.setWidth("String_Node_Str");
break;
case DynamicForm.LAYOUT_VERTICAL:
default :
if (customStyleName.equals("String_Node_Str")) {
this.inputField.getInputFieldWidget().setWidth(fieldWidth);
}
break;
}
}

Fixed version (ground truth):
/** 
 * Class constructor
 * @param inputField - The input field that should be displayed on the dynamic form
 * @param label - The label that should be displayed above the input field
 * @param embeded - Whether the component is an embeded object or not
 * @param layout - The layout of the field. If an incorrect value is passed, it will default to vertical
 * @param customStyleName - The custom style to apply to the field
 */
public Field(InputField inputField,String label,boolean embeded,int layout,String customStyleName){
  initWidget(container);
  this.embeded=embeded;
  this.inputField=inputField;
  this.fieldLabel.setText(label);
  if (!this.fieldLabel.getText().equals("String_Node_Str")) {
    this.container.add(this.fieldLabel);
  }
  this.fieldLabel.addStyleName(labelStyleName);
  this.container.add(this.inputFieldContainer);
  this.inputFieldContainer.add(this.inputField.getInputFieldWidget());
  this.inputFieldContainer.add(this.requiredStar);
  this.requiredStar.setVisible(this.inputField.isRequired());
  this.inputField.getInputFieldWidget().addStyleName(inputFieldStyleName);
  if (!customStyleName.equals("String_Node_Str")) {
    this.addStyleName(customStyleName);
  }
  if (this.embeded) {
    this.container.setStyleName(containerEmbeddedStyleName);
    this.inputField.getInputFieldWidget().addStyleName(inputFieldAdditionalEmbeddedStyleName);
  }
 else {
    this.inputField.getInputFieldWidget().addStyleName(inputFieldAdditionalNormalStyleName);
    this.container.addStyleName(containerDefaultStyleName);
    this.requiredStar.addStyleName(requiredIndicatorStyle);
    this.inputField.setReadOnly(readOnly);
  }
switch (layout) {
case DynamicForm.LAYOUT_HORIZONTAL:
    this.container.addStyleName(horizontalDefaultStyleName);
  this.container.setWidth("String_Node_Str");
break;
case DynamicForm.LAYOUT_VERTICAL:
default :
if (customStyleName.equals("String_Node_Str")) {
this.inputField.getInputFieldWidget().setWidth(fieldWidth);
}
break;
}
}