Program: 120766
Project: 120766
Buggy source:
/** 
 * DOC YeXiaowei FileInputExcelNode constructor comment.
 * @param filename
 * @param metadatas
 * @param encoding
 * @param limitRows
 * @param header
 * @param footer
 * @param emptyEmptyRow
 * @param bean
 */
public FileInputExcelNode(String filename,List<IMetadataTable> metadatas,String encoding,String limitRows,String header,String footer,String emptyEmptyRow,ExcelSchemaBean bean,String versionCheck){
  super("String_Node_Str");
  excelBean=bean;
  String[] paramNames=new String[]{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  String[] paramValues;
switch (LanguageManager.getCurrentLanguage()) {
case JAVA:
    paramValues=new String[]{filename,encoding == null ? TalendTextUtils.addQuotes("String_Node_Str") : encoding,limitRows.equals("String_Node_Str") ? "String_Node_Str" : limitRows,header,footer,emptyEmptyRow,bean.getFirstColumn(),bean.getLastColumn(),"String_Node_Str",versionCheck};
  break;
default :
paramValues=new String[]{filename,encoding == null ? TalendTextUtils.addQuotes("String_Node_Str") : encoding,limitRows.equals("String_Node_Str") ? "String_Node_Str" : limitRows,header,footer,emptyEmptyRow,bean.getFirstColumn() == null ? null : "String_Node_Str" + bean.getFirstColumn() + "String_Node_Str",bean.getLastColumn() == null ? null : "String_Node_Str" + bean.getLastColumn() + "String_Node_Str","String_Node_Str",versionCheck};
}
IComponent component=ComponentsFactoryProvider.getInstance().get("String_Node_Str");
this.setElementParameters(component.createElementParameters(this));
for (int i=0; i < paramNames.length; i++) {
if (paramValues[i] != null) {
IElementParameter param=this.getElementParameter(paramNames[i]);
if (param != null) {
  param.setValue(paramValues[i]);
}
}
}
addSheetsParameters();
if (!isPerlProject()) {
addJavaSpecificParameters();
}
setMetadataList(metadatas);
int nbColumns=0;
for (IMetadataTable metadata : metadatas) {
nbColumns+=metadata.getListColumns().size();
}
setColumnNumber(nbColumns);
}

Fixed version (ground truth):
/** 
 * DOC YeXiaowei FileInputExcelNode constructor comment.
 * @param filename
 * @param metadatas
 * @param encoding
 * @param limitRows
 * @param header
 * @param footer
 * @param emptyEmptyRow
 * @param bean
 */
public FileInputExcelNode(String filename,List<IMetadataTable> metadatas,String encoding,String limitRows,String header,String footer,String emptyEmptyRow,ExcelSchemaBean bean,String versionCheck){
  super("String_Node_Str");
  excelBean=bean;
  String[] paramNames=new String[]{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  String[] paramValues;
switch (LanguageManager.getCurrentLanguage()) {
case JAVA:
    paramValues=new String[]{filename,encoding == null ? TalendTextUtils.addQuotes("String_Node_Str") : encoding,limitRows.equals("String_Node_Str") ? "String_Node_Str" : limitRows,header,footer,emptyEmptyRow,bean.getFirstColumn(),bean.getLastColumn(),"String_Node_Str",versionCheck,bean.getGenerationMode()};
  break;
default :
paramValues=new String[]{filename,encoding == null ? TalendTextUtils.addQuotes("String_Node_Str") : encoding,limitRows.equals("String_Node_Str") ? "String_Node_Str" : limitRows,header,footer,emptyEmptyRow,bean.getFirstColumn() == null ? null : "String_Node_Str" + bean.getFirstColumn() + "String_Node_Str",bean.getLastColumn() == null ? null : "String_Node_Str" + bean.getLastColumn() + "String_Node_Str","String_Node_Str",versionCheck,bean.getGenerationMode()};
}
IComponent component=ComponentsFactoryProvider.getInstance().get("String_Node_Str");
this.setElementParameters(component.createElementParameters(this));
for (int i=0; i < paramNames.length; i++) {
if (paramValues[i] != null) {
IElementParameter param=this.getElementParameter(paramNames[i]);
if (param != null) {
  param.setValue(paramValues[i]);
}
}
}
addSheetsParameters();
if (!isPerlProject()) {
addJavaSpecificParameters();
}
setMetadataList(metadatas);
int nbColumns=0;
for (IMetadataTable metadata : metadatas) {
nbColumns+=metadata.getListColumns().size();
}
setColumnNumber(nbColumns);
}