Program: 28497
Project: 28497
Buggy source:
private URL getResource(String name,boolean fromJarsOnly){
  if (logger.isLoggable(Level.FINER))   logger.log(Level.FINER,"String_Node_Str" + name + "String_Node_Str");
  URL url=null;
  if (isResourceDelegate(name)) {
    if (logger.isLoggable(Level.FINER))     logger.log(Level.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.log(Level.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.log(Level.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.log(Level.FINER,"String_Node_Str" + url.toString() + "String_Node_Str");
      return (url);
    }
  }
  if (logger.isLoggable(Level.FINER))   logger.log(Level.FINER,"String_Node_Str");
  return (null);
}

Fixed version (ground truth):
/** 
 * Find the resource with the given name.  A resource is some data (images, audio, text, etc.) that can be accessed by class code in a way that is independent of the location of the code.  The name of a resource is a "/"-separated path name that identifies the resource. If the resource cannot be found, return <code>null</code>. <p> This method searches according to the following algorithm, returning as soon as it finds the appropriate URL.  If the resource cannot be found, returns <code>null</code>. <ul> <li>If the <code>delegate</code> property is set to <code>true</code>, call the <code>getResource()</code> method of the parent class loader, if any.</li> <li>Call <code>findResource()</code> to find this resource in our locally defined repositories.</li> <li>Call the <code>getResource()</code> method of the parent class loader, if any.</li> </ul>
 * @param name Name of the resource to return a URL for
 */
@Override public URL getResource(String name){
  if (logger.isLoggable(Level.FINER))   logger.log(Level.FINER,"String_Node_Str" + name + "String_Node_Str");
  URL url=null;
  if (isResourceDelegate(name)) {
    if (logger.isLoggable(Level.FINER))     logger.log(Level.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.log(Level.FINER,"String_Node_Str" + url.toString() + "String_Node_Str");
      return (url);
    }
  }
  url=findResource(name);
  if (url != null) {
    if (antiJARLocking) {
      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.log(Level.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.log(Level.FINER,"String_Node_Str" + url.toString() + "String_Node_Str");
      return (url);
    }
  }
  if (logger.isLoggable(Level.FINER))   logger.log(Level.FINER,"String_Node_Str");
  return (null);
}