Program: 121468
Project: 121468
Buggy source:
private static void synchronizedComponent(List<JetBean> components,IProgressMonitor sub,List<JetBean> alreadyCompiledEmitters,TalendJetEmitter dummyEmitter,int monitorBuffer,IProgressMonitor monitorWrap){
  for (  JetBean jetBean : components) {
    if (!emitterPool.containsKey(jetBean)) {
      ComponentCompilations.deleteMarkers();
      TalendJetEmitter emitter=new TalendJetEmitter(getFullTemplatePath(jetBean),jetBean.getClassLoader(),jetBean.getFamily(),jetBean.getClassName(),jetBean.getLanguage(),jetBean.getCodePart(),dummyEmitter.getTalendEclipseHelper());
      if (monitorWrap.isCanceled()) {
        if (!CommonsPlugin.isHeadless()) {
          Display.getDefault().syncExec(new Runnable(){
            @Override public void run(){
              MessageDialog.openError(Display.getDefault().getActiveShell(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"));
            }
          }
);
        }
        return;
      }
      try {
        emitter.initialize(sub);
      }
 catch (      JETException e) {
        log.error(Messages.getString("String_Node_Str") + e.getMessage(),e);
        continue;
      }
      if (emitter.getMethod() != null) {
        jetBean.setMethod(emitter.getMethod());
        jetBean.setClassName(emitter.getMethod().getDeclaringClass().getName());
        alreadyCompiledEmitters.add(jetBean);
      }
 else {
        jetFilesCompileFail.add(jetBean);
      }
      emitterPool.put(jetBean,emitter);
      monitorBuffer++;
      if (monitorBuffer % 100 == 0) {
        monitorWrap.worked(100);
        monitorBuffer=0;
      }
    }
  }
}

Fixed version (ground truth):
private static void synchronizedComponent(List<JetBean> components,IProgressMonitor sub,List<JetBean> alreadyCompiledEmitters,TalendJetEmitter dummyEmitter,int monitorBuffer,IProgressMonitor monitorWrap){
  for (  JetBean jetBean : components) {
    if (!emitterPool.containsKey(jetBean)) {
      ComponentCompilations.deleteMarkers();
      TalendJetEmitter emitter=new TalendJetEmitter(getFullTemplatePath(jetBean),jetBean.getClassLoader(),jetBean.getFamily(),jetBean.getClassName(),jetBean.getLanguage(),jetBean.getCodePart(),dummyEmitter.getTalendEclipseHelper());
      if (monitorWrap.isCanceled()) {
        if (!CommonUIPlugin.isFullyHeadless()) {
          Display.getDefault().syncExec(new Runnable(){
            @Override public void run(){
              MessageDialog.openError(Display.getDefault().getActiveShell(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"));
            }
          }
);
        }
        return;
      }
      try {
        emitter.initialize(sub);
      }
 catch (      JETException e) {
        log.error(Messages.getString("String_Node_Str") + e.getMessage(),e);
        continue;
      }
      if (emitter.getMethod() != null) {
        jetBean.setMethod(emitter.getMethod());
        jetBean.setClassName(emitter.getMethod().getDeclaringClass().getName());
        alreadyCompiledEmitters.add(jetBean);
      }
 else {
        jetFilesCompileFail.add(jetBean);
      }
      emitterPool.put(jetBean,emitter);
      monitorBuffer++;
      if (monitorBuffer % 100 == 0) {
        monitorWrap.worked(100);
        monitorBuffer=0;
      }
    }
  }
}