Program: 29690
Project: 29690
Buggy source:
private static void initMapping(){
  descriptorClasses=new HashMap();
  register(new XMLElement(RuntimeTagNames.PROPERTY),WebProperty.class);
  register(new XMLElement(RuntimeTagNames.COOKIE_PROPERTIES),CookieProperties.class);
  register(new XMLElement(RuntimeTagNames.LOCALE_CHARSET_MAP),LocaleCharsetMap.class);
  register(new XMLElement(RuntimeTagNames.LOCALE_CHARSET_INFO),LocaleCharsetInfo.class);
  register(new XMLElement(RuntimeTagNames.MANAGER_PROPERTIES),ManagerProperties.class);
  register(new XMLElement(RuntimeTagNames.SERVLET),Servlet.class);
  register(new XMLElement(RuntimeTagNames.SESSION_CONFIG),SessionConfig.class);
  register(new XMLElement(RuntimeTagNames.SESSION_MANAGER),SessionManager.class);
  register(new XMLElement(RuntimeTagNames.JSP_CONFIG),JspConfig.class);
  register(new XMLElement(RuntimeTagNames.CACHE_MAPPING),CacheMapping.class);
  register(new XMLElement(RuntimeTagNames.CACHE_HELPER),CacheHelper.class);
  register(new XMLElement(RuntimeTagNames.CACHE),Cache.class);
  register(new XMLElement(RuntimeTagNames.CLASS_LOADER),ClassLoader.class);
  register(new XMLElement(RuntimeTagNames.STORE_PROPERTIES),StoreProperties.class);
  register(new XMLElement(RuntimeTagNames.SESSION_PROPERTIES),SessionProperties.class);
  register(new XMLElement(RuntimeTagNames.DEFAULT_HELPER),DefaultHelper.class);
  register(new XMLElement(RuntimeTagNames.EJB_REF),EjbRef.class);
  register(new XMLElement(RuntimeTagNames.RESOURCE_REF),ResourceRef.class);
  register(new XMLElement(RuntimeTagNames.RESOURCE_ENV_REF),ResourceEnvRef.class);
  register(new XMLElement(RuntimeTagNames.DEFAULT_RESOURCE_PRINCIPAL),DefaultResourcePrincipal.class);
  register(new XMLElement(RuntimeTagNames.CONSTRAINT_FIELD),ConstraintField.class);
  register(new XMLElement(RuntimeTagNames.RESOURCE_DESCRIPTION),ResourceRef.class);
  register(new XMLElement(RuntimeTagNames.RESOURCE_ENV_DESCRIPTION),ResourceEnvRef.class);
  register(new XMLElement(RuntimeTagNames.EJB_REFERENCE_DESCRIPTION),EjbRef.class);
  register(new XMLElement(RuntimeTagNames.PRINCIPAL),Principal.class);
  register(new XMLElement(RuntimeTagNames.BACKEND_PRINCIPAL),Principal.class);
  register(new XMLElement(RuntimeTagNames.MAP_ELEMENT),MapElement.class);
  register(new XMLElement(RuntimeTagNames.ROLE_MAP),RoleMap.class);
  register(new XMLElement(RuntimeTagNames.RESOURCE_ADAPTER),ResourceAdapter.class);
}

Fixed version (ground truth):
private static void initMapping(){
  descriptorClasses=new HashMap();
  register(new XMLElement(RuntimeTagNames.PROPERTY),WebProperty.class);
  register(new XMLElement(RuntimeTagNames.COOKIE_PROPERTIES),CookieProperties.class);
  register(new XMLElement(RuntimeTagNames.LOCALE_CHARSET_MAP),LocaleCharsetMap.class);
  register(new XMLElement(RuntimeTagNames.LOCALE_CHARSET_INFO),LocaleCharsetInfo.class);
  register(new XMLElement(RuntimeTagNames.MANAGER_PROPERTIES),ManagerProperties.class);
  register(new XMLElement(RuntimeTagNames.SERVLET),Servlet.class);
  register(new XMLElement(RuntimeTagNames.SESSION_CONFIG),SessionConfig.class);
  register(new XMLElement(RuntimeTagNames.SESSION_MANAGER),SessionManager.class);
  register(new XMLElement(RuntimeTagNames.JSP_CONFIG),JspConfig.class);
  register(new XMLElement(RuntimeTagNames.CACHE_MAPPING),CacheMapping.class);
  register(new XMLElement(RuntimeTagNames.CACHE_HELPER),CacheHelper.class);
  register(new XMLElement(RuntimeTagNames.CACHE),Cache.class);
  register(new XMLElement(RuntimeTagNames.CLASS_LOADER),ClassLoader.class);
  register(new XMLElement(RuntimeTagNames.STORE_PROPERTIES),StoreProperties.class);
  register(new XMLElement(RuntimeTagNames.SESSION_PROPERTIES),SessionProperties.class);
  register(new XMLElement(RuntimeTagNames.DEFAULT_HELPER),DefaultHelper.class);
  register(new XMLElement(RuntimeTagNames.EJB_REF),EjbReference.class);
  register(new XMLElement(RuntimeTagNames.RESOURCE_REF),ResourceReferenceDescriptor.class);
  register(new XMLElement(RuntimeTagNames.RESOURCE_ENV_REF),ResourceEnvReferenceDescriptor.class);
  register(new XMLElement(RuntimeTagNames.DEFAULT_RESOURCE_PRINCIPAL),DefaultResourcePrincipal.class);
  register(new XMLElement(RuntimeTagNames.CONSTRAINT_FIELD),ConstraintField.class);
  register(new XMLElement(RuntimeTagNames.RESOURCE_DESCRIPTION),ResourceReferenceDescriptor.class);
  register(new XMLElement(RuntimeTagNames.RESOURCE_ENV_DESCRIPTION),ResourceEnvReferenceDescriptor.class);
  register(new XMLElement(RuntimeTagNames.EJB_REFERENCE_DESCRIPTION),EjbReference.class);
  register(new XMLElement(RuntimeTagNames.PRINCIPAL),Principal.class);
  register(new XMLElement(RuntimeTagNames.BACKEND_PRINCIPAL),Principal.class);
  register(new XMLElement(RuntimeTagNames.MAP_ELEMENT),MapElement.class);
  register(new XMLElement(RuntimeTagNames.ROLE_MAP),RoleMap.class);
  register(new XMLElement(RuntimeTagNames.RESOURCE_ADAPTER),ResourceAdapter.class);
}