Program: 177140
Project: 177140
Buggy source:
@Override public ValidationResult validateComplexType(ComplexTypeDefinition complexType){
  ValidationResult result=super.validateComplexType(complexType);
  if (!isGWTTransient(complexType)) {
    if (!hasDefaultConstructor(complexType)) {
      result.addError(complexType,"String_Node_Str");
    }
    if ((this.enforceNamespaceConformance) && (!complexType.getPackage().getQualifiedName().startsWith(this.gwtModuleNamespace)) && (isKnownGwtType(complexType))) {
      result.addError(complexType,String.format("String_Node_Str",complexType.getPackage().getQualifiedName(),gwtModuleNamespace));
    }
    for (    Attribute attribute : complexType.getAttributes()) {
      if (!isGWTTransient(attribute)) {
        if ((attribute.getDelegate() instanceof FieldDeclaration) && (enforceNoFieldAccessors)) {
          result.addError(attribute,"String_Node_Str");
        }
        if (!isSupported(attribute.getAccessorType())) {
          result.addError(attribute,"String_Node_Str" + attribute.getAccessorType() + "String_Node_Str");
        }
      }
    }
    for (    Element element : complexType.getElements()) {
      if (!isGWTTransient(element)) {
        if ((element.getDelegate() instanceof FieldDeclaration) && (enforceNoFieldAccessors)) {
          result.addError(element,"String_Node_Str");
        }
        if (!isSupported(element.getAccessorType())) {
          result.addError(element,"String_Node_Str" + element.getAccessorType() + "String_Node_Str");
        }
      }
    }
    Value value=complexType.getValue();
    if (value != null) {
      if (!isGWTTransient(value)) {
        if ((value.getDelegate() instanceof FieldDeclaration) && (enforceNoFieldAccessors)) {
          result.addError(value,"String_Node_Str");
        }
        if (!isSupported(value.getAccessorType())) {
          result.addError(value,"String_Node_Str" + value.getAccessorType() + "String_Node_Str");
        }
      }
    }
  }
  return result;
}

Fixed version (ground truth):
@Override public ValidationResult validateComplexType(ComplexTypeDefinition complexType){
  ValidationResult result=super.validateComplexType(complexType);
  if (!isGWTTransient(complexType)) {
    if (!hasDefaultConstructor(complexType)) {
      result.addError(complexType,"String_Node_Str");
    }
    if ((this.enforceNamespaceConformance) && (!complexType.getPackage().getQualifiedName().startsWith(this.gwtModuleNamespace)) && (!isKnownGwtType(complexType))) {
      result.addError(complexType,String.format("String_Node_Str",complexType.getPackage().getQualifiedName(),gwtModuleNamespace));
    }
    for (    Attribute attribute : complexType.getAttributes()) {
      if (!isGWTTransient(attribute)) {
        if ((attribute.getDelegate() instanceof FieldDeclaration) && (enforceNoFieldAccessors)) {
          result.addError(attribute,"String_Node_Str");
        }
        if (!isSupported(attribute.getAccessorType())) {
          result.addError(attribute,"String_Node_Str" + attribute.getAccessorType() + "String_Node_Str");
        }
      }
    }
    for (    Element element : complexType.getElements()) {
      if (!isGWTTransient(element)) {
        if ((element.getDelegate() instanceof FieldDeclaration) && (enforceNoFieldAccessors)) {
          result.addError(element,"String_Node_Str");
        }
        if (!isSupported(element.getAccessorType())) {
          result.addError(element,"String_Node_Str" + element.getAccessorType() + "String_Node_Str");
        }
      }
    }
    Value value=complexType.getValue();
    if (value != null) {
      if (!isGWTTransient(value)) {
        if ((value.getDelegate() instanceof FieldDeclaration) && (enforceNoFieldAccessors)) {
          result.addError(value,"String_Node_Str");
        }
        if (!isSupported(value.getAccessorType())) {
          result.addError(value,"String_Node_Str" + value.getAccessorType() + "String_Node_Str");
        }
      }
    }
  }
  return result;
}