Program: 30373
Project: 30373
Buggy source:
private URL getResource(String name,boolean fromJarsOnly){
  if (logger.isLoggable(Level.FINER))   logger.finer("String_Node_Str" + name + "String_Node_Str");
  URL url=null;
  if (delegate || (name.startsWith("String_Node_Str") && (!name.startsWith("String_Node_Str") || !useMyFaces)) || name.startsWith("String_Node_Str")|| (name.startsWith("String_Node_Str") && !name.startsWith("String_Node_Str") && !useMyFaces)|| name.startsWith("String_Node_Str")) {
    if (logger.isLoggable(Level.FINER))     logger.finer("String_Node_Str" + parent);
    ClassLoader loader=parent;
    if (loader == null)     loader=system;
    url=loader.getResource(name);
    if (url != null) {
      if (logger.isLoggable(Level.FINER))       logger.finer("String_Node_Str" + url.toString() + "String_Node_Str");
      return (url);
    }
  }
  url=findResource(name,fromJarsOnly);
  if (url != null) {
    ResourceEntry entry=resourceEntries.get(name);
    try {
      String repository=entry.codeBase.toString();
      if ((repository.endsWith("String_Node_Str")) && !(name.endsWith("String_Node_Str")) && !(name.endsWith("String_Node_Str"))) {
        File resourceFile=new File(loaderDir,name);
        url=resourceFile.toURI().toURL();
      }
    }
 catch (    Exception e) {
    }
    if (logger.isLoggable(Level.FINER))     logger.finer("String_Node_Str" + url.toString() + "String_Node_Str");
    return (url);
  }
  if (!delegate) {
    ClassLoader loader=parent;
    if (loader == null)     loader=system;
    url=loader.getResource(name);
    if (url != null) {
      if (logger.isLoggable(Level.FINER))       logger.finer("String_Node_Str" + url.toString() + "String_Node_Str");
      return (url);
    }
  }
  if (logger.isLoggable(Level.FINER))   logger.finer("String_Node_Str");
  return (null);
}

Fixed version (ground truth):
private URL getResource(String name,boolean fromJarsOnly){
  if (logger.isLoggable(Level.FINER))   logger.finer("String_Node_Str" + name + "String_Node_Str");
  URL url=null;
  if (isResourceDelegate(name)) {
    if (logger.isLoggable(Level.FINER))     logger.finer("String_Node_Str" + parent);
    ClassLoader loader=parent;
    if (loader == null)     loader=system;
    url=loader.getResource(name);
    if (url != null) {
      if (logger.isLoggable(Level.FINER))       logger.finer("String_Node_Str" + url.toString() + "String_Node_Str");
      return (url);
    }
  }
  url=findResource(name,fromJarsOnly);
  if (url != null) {
    ResourceEntry entry=resourceEntries.get(name);
    try {
      String repository=entry.codeBase.toString();
      if ((repository.endsWith("String_Node_Str")) && !(name.endsWith("String_Node_Str")) && !(name.endsWith("String_Node_Str"))) {
        File resourceFile=new File(loaderDir,name);
        url=resourceFile.toURI().toURL();
      }
    }
 catch (    Exception e) {
    }
    if (logger.isLoggable(Level.FINER))     logger.finer("String_Node_Str" + url.toString() + "String_Node_Str");
    return (url);
  }
  if (!delegate) {
    ClassLoader loader=parent;
    if (loader == null)     loader=system;
    url=loader.getResource(name);
    if (url != null) {
      if (logger.isLoggable(Level.FINER))       logger.finer("String_Node_Str" + url.toString() + "String_Node_Str");
      return (url);
    }
  }
  if (logger.isLoggable(Level.FINER))   logger.finer("String_Node_Str");
  return (null);
}