Program: 16681
Project: 16681
Buggy source:
@Override public void onApplicationEvent(ApplicationEvent event){
  if (event instanceof ContextRefreshedEvent) {
    LOGGER.debug("String_Node_Str");
    long startTime=System.currentTimeMillis();
    ContextRefreshedEvent contextRefreshedEvent=(ContextRefreshedEvent)event;
    ApplicationContext applicationContext=contextRefreshedEvent.getApplicationContext();
    Map beans=applicationContext.getBeansOfType(Object.class,false,false);
    List<PostInitializingMethod> postInitializingMethods=new LinkedList<PostInitializingMethod>();
    for (    Object beanNameObject : beans.keySet()) {
      String beanName=(String)beanNameObject;
      Object bean=beans.get(beanNameObject);
      Class<?> beanClass=bean.getClass();
      Method[] methods=beanClass.getMethods();
      for (      Method method : methods) {
        if (getAnnotation(method,PostInitialize.class) != null) {
          if (method.getParameterTypes().length == 0) {
            int order=getAnnotation(method,PostInitialize.class).order();
            postInitializingMethods.add(new PostInitializingMethod(method,bean,order,beanName));
          }
 else {
            LOGGER.warn("String_Node_Str",method.toGenericString(),beanName);
          }
        }
      }
    }
    Collections.sort(postInitializingMethods);
    long endTime=System.currentTimeMillis();
    LOGGER.debug("String_Node_Str",endTime - startTime,postInitializingMethods.size());
    for (    PostInitializingMethod postInitializingMethod : postInitializingMethods) {
      Method method=postInitializingMethod.getMethod();
      try {
        method.invoke(postInitializingMethod.getBeanInstance());
      }
 catch (      IllegalAccessException e) {
        throw new BeanCreationException("String_Node_Str" + postInitializingMethod.getBeanName() + "String_Node_Str",e);
      }
catch (      IllegalArgumentException e) {
        throw new BeanCreationException("String_Node_Str" + postInitializingMethod.getBeanName() + "String_Node_Str",e);
      }
catch (      InvocationTargetException e) {
        throw new BeanCreationException("String_Node_Str" + postInitializingMethod.getBeanName() + "String_Node_Str",e);
      }
    }
  }
}

Fixed version (ground truth):
@Override public void onApplicationEvent(ApplicationEvent event){
  if (event instanceof ContextRefreshedEvent) {
    LOGGER.debug("String_Node_Str");
    long startTime=System.currentTimeMillis();
    ContextRefreshedEvent contextRefreshedEvent=(ContextRefreshedEvent)event;
    ApplicationContext applicationContext=contextRefreshedEvent.getApplicationContext();
    Map beans=applicationContext.getBeansOfType(Object.class,false,false);
    List<PostInitializingMethod> postInitializingMethods=new LinkedList<PostInitializingMethod>();
    for (    Object beanNameObject : beans.keySet()) {
      String beanName=(String)beanNameObject;
      Object bean=beans.get(beanNameObject);
      if (bean == null) {
        LOGGER.warn("String_Node_Str",beanName);
        continue;
      }
      Class<?> beanClass=bean.getClass();
      Method[] methods=beanClass.getMethods();
      for (      Method method : methods) {
        if (getAnnotation(method,PostInitialize.class) != null) {
          if (method.getParameterTypes().length == 0) {
            int order=getAnnotation(method,PostInitialize.class).order();
            postInitializingMethods.add(new PostInitializingMethod(method,bean,order,beanName));
          }
 else {
            LOGGER.warn("String_Node_Str",method.toGenericString(),beanName);
          }
        }
      }
    }
    Collections.sort(postInitializingMethods);
    long endTime=System.currentTimeMillis();
    LOGGER.debug("String_Node_Str",endTime - startTime,postInitializingMethods.size());
    for (    PostInitializingMethod postInitializingMethod : postInitializingMethods) {
      Method method=postInitializingMethod.getMethod();
      try {
        method.invoke(postInitializingMethod.getBeanInstance());
      }
 catch (      IllegalAccessException e) {
        throw new BeanCreationException("String_Node_Str" + postInitializingMethod.getBeanName() + "String_Node_Str",e);
      }
catch (      IllegalArgumentException e) {
        throw new BeanCreationException("String_Node_Str" + postInitializingMethod.getBeanName() + "String_Node_Str",e);
      }
catch (      InvocationTargetException e) {
        throw new BeanCreationException("String_Node_Str" + postInitializingMethod.getBeanName() + "String_Node_Str",e);
      }
    }
  }
}