Program: 143695
Project: 143695
Buggy source:
private void setUpComponent(Component comp,IRecordInternal record,Object compColor,Object fgColor,Object compFont,Object compBorder,int visibleRowIndex){
  if (tabIndex < 0) {
    TabIndexHelper.setUpTabIndexAttributeModifier(comp,tabIndex);
  }
 else {
    if (elementTabIndexes.size() > 0) {
      Integer idx=elementTabIndexes.get(cellToElement.get(comp));
      if (idx == null) {
        TabIndexHelper.setUpTabIndexAttributeModifier(comp,ISupportWebTabSeq.SKIP);
      }
 else {
        TabIndexHelper.setUpTabIndexAttributeModifier(comp,tabIndex + 1 + visibleRowIndex * elementTabIndexes.size() + idx.intValue());
      }
    }
 else {
      TabIndexHelper.setUpTabIndexAttributeModifier(comp,tabIndex + 1);
    }
  }
  if (compColor != null) {
    MarkupContainer cellContainer=comp.getParent();
    String compColorStr=compColor.toString();
    if (cellContainer instanceof CellContainer) {
      cellContainer.add(new StyleAppendingModifier(new Model<String>("String_Node_Str" + compColorStr)));
    }
  }
  WebCellBasedView.this.applyStyleOnComponent(comp,compColor,fgColor,compFont,compBorder);
  if (scriptable.js_isReadOnly() && validationEnabled && comp instanceof IScriptableProvider&& ((IScriptableProvider)comp).getScriptObject() instanceof IScriptReadOnlyMethods) {
    ((IScriptReadOnlyMethods)((IScriptableProvider)comp).getScriptObject()).js_setReadOnly(true);
  }
  List<Component> readOnlyComponents=((WebForm)fc.getFormUI()).getReadOnlyComponents();
  if (readOnlyComponents.indexOf(WebCellBasedView.this) != -1 && readOnlyComponents.indexOf(comp) == -1)   readOnlyComponents.add(comp);
  if (!isEnabled() && comp instanceof IComponent) {
    ((IComponent)comp).setComponentEnabled(false);
  }
  if (comp instanceof IDisplayRelatedData && record != null) {
    ((IDisplayRelatedData)comp).setRecord(record,true);
  }
  MarkupContainer parent=comp.getParent();
  if (parent instanceof CellContainer) {
    parent.setVisible(comp.isVisible());
  }
  if (compBorder != null) {
    Object elem=WebCellBasedView.this.cellToElement.get(comp);
    Object colId=WebCellBasedView.this.elementToColumnIdentifierComponent.get(elem);
    final int idx=WebCellBasedView.this.visibleColummIdentifierComponents.indexOf(colId);
    comp.add(new StyleAppendingModifier(new Model<String>(){
      @Override public String getObject(){
        if (idx == 0) {
          return "String_Node_Str";
        }
 else         if (idx == WebCellBasedView.this.visibleColummIdentifierComponents.size() - 1) {
          return "String_Node_Str";
        }
        return "String_Node_Str";
      }
    }
));
  }
}

Fixed version (ground truth):
private void setUpComponent(Component comp,IRecordInternal record,Object compColor,Object fgColor,Object compFont,Object compBorder,int visibleRowIndex){
  if (tabIndex < 0) {
    TabIndexHelper.setUpTabIndexAttributeModifier(comp,tabIndex);
  }
 else {
    if (elementTabIndexes.size() > 0) {
      Integer idx=elementTabIndexes.get(cellToElement.get(comp));
      if (idx == null) {
        TabIndexHelper.setUpTabIndexAttributeModifier(comp,ISupportWebTabSeq.SKIP);
      }
 else {
        TabIndexHelper.setUpTabIndexAttributeModifier(comp,tabIndex + 1 + visibleRowIndex * elementTabIndexes.size() + idx.intValue());
      }
    }
 else {
      TabIndexHelper.setUpTabIndexAttributeModifier(comp,tabIndex + 1);
    }
  }
  if (compColor != null) {
    MarkupContainer cellContainer=comp.getParent();
    String compColorStr=compColor.toString();
    if (cellContainer instanceof CellContainer) {
      cellContainer.add(new StyleAppendingModifier(new Model<String>("String_Node_Str" + compColorStr)));
    }
  }
  WebCellBasedView.this.applyStyleOnComponent(comp,compColor,fgColor,compFont,compBorder);
  if (scriptable.js_isReadOnly() && validationEnabled && comp instanceof IScriptableProvider&& ((IScriptableProvider)comp).getScriptObject() instanceof IScriptReadOnlyMethods) {
    ((IScriptReadOnlyMethods)((IScriptableProvider)comp).getScriptObject()).js_setReadOnly(true);
  }
  List<Component> readOnlyComponents=((WebForm)fc.getFormUI()).getReadOnlyComponents();
  if (readOnlyComponents.indexOf(WebCellBasedView.this) != -1 && readOnlyComponents.indexOf(comp) == -1)   readOnlyComponents.add(comp);
  if (!isEnabled() && comp instanceof IComponent) {
    ((IComponent)comp).setComponentEnabled(false);
  }
  if (comp instanceof IDisplayRelatedData && record != null) {
    ((IDisplayRelatedData)comp).setRecord(record,true);
  }
  MarkupContainer parent=comp.getParent();
  if (parent instanceof CellContainer) {
    parent.setVisible(comp.isVisible());
  }
  Properties borderProperties=new Properties();
  if (compBorder != null) {
    ComponentFactoryHelper.createBorderCSSProperties((String)compBorder,borderProperties);
  }
 else {
    if (comp instanceof IComponent) {
      Border cBorder=((IComponent)comp).getBorder();
      if (cBorder != null) {
        ComponentFactoryHelper.createBorderCSSProperties(ComponentFactoryHelper.createBorderString(cBorder),borderProperties);
      }
 else {
        borderProperties.put("String_Node_Str","String_Node_Str");
        borderProperties.put("String_Node_Str","String_Node_Str");
        borderProperties.put("String_Node_Str","String_Node_Str");
      }
    }
  }
  if (borderProperties.size() > 0) {
    String borderWidth=getFirstToken(borderProperties.getProperty("String_Node_Str"));
    String borderStyle=borderProperties.getProperty("String_Node_Str");
    if (borderStyle == null)     borderStyle="String_Node_Str";
    String borderColor=getFirstToken(borderProperties.getProperty("String_Node_Str"));
    final String borderDef=new StringBuilder(borderWidth).append("String_Node_Str").append(borderStyle).append("String_Node_Str").append(borderColor).toString();
    Object elem=WebCellBasedView.this.cellToElement.get(comp);
    Object colId=WebCellBasedView.this.elementToColumnIdentifierComponent.get(elem);
    final int idx=WebCellBasedView.this.visibleColummIdentifierComponents.indexOf(colId);
    comp.add(new StyleAppendingModifier(new Model<String>(){
      @Override public String getObject(){
        StringBuilder style=new StringBuilder("String_Node_Str").append(borderDef).append("String_Node_Str").append(borderDef);
        if (idx == 0) {
          style.append("String_Node_Str").append(borderDef);
        }
 else         if (idx == WebCellBasedView.this.visibleColummIdentifierComponents.size() - 1) {
          style.append("String_Node_Str").append(borderDef);
        }
        return style.toString();
      }
    }
));
  }
}