Program: 152930
Project: 152930
Buggy source:
/** 
 * Constructs a new <code>ExtenderConfiguration</code> instance. Locates the extender configuration, creates an application context which will returned the extender items.
 * @param bundleContext extender OSGi bundle context
 */
public ExtenderConfiguration(BundleContext bundleContext){
  Bundle bundle=bundleContext.getBundle();
  Properties properties=new Properties(createDefaultProperties());
  Enumeration enm=bundle.findEntries("String_Node_Str","String_Node_Str",false);
  if (enm == null) {
    log.info("String_Node_Str");
    taskExecutor=createDefaultTaskExecutor();
    eventMulticaster=new SimpleApplicationEventMulticaster();
    isMulticasterManagedInternally=true;
    contextCreator=createDefaultApplicationContextCreator();
    classLoader=BundleDelegatingClassLoader.createBundleClassLoaderFor(bundle);
  }
 else {
    String[] configs=copyEnumerationToList(enm);
    log.info("String_Node_Str" + ObjectUtils.nullSafeToString(configs));
    ConfigurableOsgiBundleApplicationContext context=new OsgiBundleXmlApplicationContext(configs);
    context.setBundleContext(bundleContext);
    context.refresh();
    taskExecutor=context.containsBean(TASK_EXECUTOR_NAME) ? (TaskExecutor)context.getBean(TASK_EXECUTOR_NAME,TaskExecutor.class) : createDefaultTaskExecutor();
    eventMulticaster=(ApplicationEventMulticaster)context.getBean(AbstractApplicationContext.APPLICATION_EVENT_MULTICASTER_BEAN_NAME);
    contextCreator=context.containsBean(CONTEXT_CREATOR_NAME) ? (OsgiApplicationContextCreator)context.getBean(CONTEXT_CREATOR_NAME,OsgiApplicationContextCreator.class) : createDefaultApplicationContextCreator();
    postProcessors.addAll(context.getBeansOfType(OsgiBeanFactoryPostProcessor.class).values());
    classLoader=context.getClassLoader();
    if (context.containsBean(PROPERTIES_NAME)) {
      Properties customProperties=(Properties)context.getBean(PROPERTIES_NAME,Properties.class);
      Enumeration propertyKey=customProperties.propertyNames();
      while (propertyKey.hasMoreElements()) {
        String property=(String)propertyKey.nextElement();
        properties.setProperty(property,customProperties.getProperty(property));
      }
    }
  }
  shutdownWaitTime=getShutdownWaitTime(properties);
  processAnnotation=getProcessAnnotations(properties);
}

Fixed version (ground truth):
/** 
 * Constructs a new <code>ExtenderConfiguration</code> instance. Locates the extender configuration, creates an application context which will returned the extender items.
 * @param bundleContext extender OSGi bundle context
 */
public ExtenderConfiguration(BundleContext bundleContext){
  Bundle bundle=bundleContext.getBundle();
  Properties properties=new Properties(createDefaultProperties());
  Enumeration enm=bundle.findEntries("String_Node_Str","String_Node_Str",false);
  if (enm == null) {
    log.info("String_Node_Str");
    taskExecutor=createDefaultTaskExecutor();
    eventMulticaster=new SimpleApplicationEventMulticaster();
    isMulticasterManagedInternally=true;
    contextCreator=createDefaultApplicationContextCreator();
    classLoader=BundleDelegatingClassLoader.createBundleClassLoaderFor(bundle);
  }
 else {
    String[] configs=copyEnumerationToList(enm);
    log.info("String_Node_Str" + ObjectUtils.nullSafeToString(configs));
    extenderConfiguration=new OsgiBundleXmlApplicationContext(configs);
    extenderConfiguration.setBundleContext(bundleContext);
    extenderConfiguration.refresh();
    taskExecutor=extenderConfiguration.containsBean(TASK_EXECUTOR_NAME) ? (TaskExecutor)extenderConfiguration.getBean(TASK_EXECUTOR_NAME,TaskExecutor.class) : createDefaultTaskExecutor();
    eventMulticaster=(ApplicationEventMulticaster)extenderConfiguration.getBean(AbstractApplicationContext.APPLICATION_EVENT_MULTICASTER_BEAN_NAME);
    contextCreator=extenderConfiguration.containsBean(CONTEXT_CREATOR_NAME) ? (OsgiApplicationContextCreator)extenderConfiguration.getBean(CONTEXT_CREATOR_NAME,OsgiApplicationContextCreator.class) : createDefaultApplicationContextCreator();
    postProcessors.addAll(extenderConfiguration.getBeansOfType(OsgiBeanFactoryPostProcessor.class).values());
    classLoader=extenderConfiguration.getClassLoader();
    if (extenderConfiguration.containsBean(PROPERTIES_NAME)) {
      Properties customProperties=(Properties)extenderConfiguration.getBean(PROPERTIES_NAME,Properties.class);
      Enumeration propertyKey=customProperties.propertyNames();
      while (propertyKey.hasMoreElements()) {
        String property=(String)propertyKey.nextElement();
        properties.setProperty(property,customProperties.getProperty(property));
      }
    }
  }
  shutdownWaitTime=getShutdownWaitTime(properties);
  processAnnotation=getProcessAnnotations(properties);
}