Program: 122529
Project: 122529
Buggy source:
private Manifest getManifest(ExportFileResource libResource,List<ProcessItem> itemToBeExport,String bundleName) throws IOException {
  Analyzer analyzer=new Analyzer();
  Jar bin=new Jar(classesLocation);
  analyzer.setJar(bin);
  String symbolicName=bundleName;
  Project project=ProjectManager.getInstance().getCurrentProject();
  if (project != null) {
    String proName=project.getLabel();
    if (proName != null) {
      symbolicName=proName.toLowerCase() + '.' + symbolicName;
    }
  }
  analyzer.setProperty(Analyzer.BUNDLE_NAME,bundleName);
  analyzer.setProperty(Analyzer.BUNDLE_SYMBOLICNAME,symbolicName);
  analyzer.setProperty(Analyzer.BUNDLE_VERSION,getBundleVersion());
  IBrandingService brandingService=(IBrandingService)GlobalServiceRegister.getDefault().getService(IBrandingService.class);
  analyzer.setProperty(Analyzer.BUNDLE_VENDOR,brandingService.getFullProductName() + "String_Node_Str" + brandingService.getAcronym()+ "String_Node_Str"+ RepositoryPlugin.getDefault().getBundle().getVersion().toString()+ "String_Node_Str");
  StringBuilder sb=new StringBuilder();
  String delim="String_Node_Str";
  for (  ProcessItem pi : itemToBeExport) {
    sb.append(delim).append(getPackageName(pi));
    delim="String_Node_Str";
    if (ROUTE.equals(itemType)) {
      String routeResourcePackages=addRouteResourcePackages(pi);
      if (!routeResourcePackages.isEmpty()) {
        sb.append(delim).append(routeResourcePackages);
      }
    }
  }
  analyzer.setProperty(Analyzer.EXPORT_PACKAGE,sb.toString());
  String importPackages;
  if (ROUTE.equals(itemType)) {
    importPackages=addRouteOsgiDependencies(libResource,itemToBeExport);
  }
 else {
    importPackages="String_Node_Str";
  }
  importPackages+="String_Node_Str";
  analyzer.setProperty(Analyzer.IMPORT_PACKAGE,importPackages);
  StringBuilder bundleClasspath=new StringBuilder("String_Node_Str");
  Set<String> relativePathList=libResource.getRelativePathList();
  for (  String path : relativePathList) {
    Set<URL> resources=libResource.getResourcesByRelativePath(path);
    for (    URL url : resources) {
      File dependencyFile=new File(url.getPath());
      bundleClasspath.append(',').append(libResource.getDirectoryName()).append(PATH_SEPARATOR).append(dependencyFile.getName());
      if ("String_Node_Str".equals(dependencyFile.getName())) {
        bin.putResource(libResource.getDirectoryName() + PATH_SEPARATOR + dependencyFile.getName(),new FileResource(dependencyFile));
      }
    }
  }
  analyzer.setProperty(Analyzer.BUNDLE_CLASSPATH,bundleClasspath.toString());
  analyzer.setProperty(Analyzer.EXPORT_SERVICE,"String_Node_Str" + bundleName + "String_Node_Str"+ itemType);
  Manifest manifest=null;
  try {
    manifest=analyzer.calcManifest();
  }
 catch (  IOException e) {
    throw e;
  }
catch (  Exception e) {
    ExceptionHandler.process(e);
  }
 finally {
    analyzer.close();
  }
  return manifest;
}

Fixed version (ground truth):
private Manifest getManifest(ExportFileResource libResource,List<ProcessItem> itemToBeExport,String bundleName) throws IOException {
  Analyzer analyzer=new Analyzer();
  Jar bin=new Jar(classesLocation);
  analyzer.setJar(bin);
  String symbolicName=bundleName;
  Project project=ProjectManager.getInstance().getCurrentProject();
  if (project != null) {
    String proName=project.getLabel();
    if (proName != null) {
      symbolicName=proName.toLowerCase() + '.' + symbolicName;
    }
  }
  analyzer.setProperty(Analyzer.BUNDLE_NAME,bundleName);
  analyzer.setProperty(Analyzer.BUNDLE_SYMBOLICNAME,symbolicName);
  analyzer.setProperty(Analyzer.BUNDLE_VERSION,getBundleVersion());
  IBrandingService brandingService=(IBrandingService)GlobalServiceRegister.getDefault().getService(IBrandingService.class);
  analyzer.setProperty(Analyzer.BUNDLE_VENDOR,brandingService.getFullProductName() + "String_Node_Str" + brandingService.getAcronym()+ "String_Node_Str"+ RepositoryPlugin.getDefault().getBundle().getVersion().toString()+ "String_Node_Str");
  StringBuilder sb=new StringBuilder();
  String delim="String_Node_Str";
  for (  ProcessItem pi : itemToBeExport) {
    sb.append(delim).append(getPackageName(pi));
    delim="String_Node_Str";
    if (ROUTE.equals(itemType)) {
      String routeResourcePackages=addRouteResourcePackages(pi);
      if (!routeResourcePackages.isEmpty()) {
        sb.append(delim).append(routeResourcePackages);
      }
    }
  }
  analyzer.setProperty(Analyzer.EXPORT_PACKAGE,sb.toString());
  String importPackages;
  if (ROUTE.equals(itemType)) {
    addRouteOsgiDependencies(analyzer,libResource,itemToBeExport);
  }
 else {
    importPackages="String_Node_Str";
    importPackages+="String_Node_Str";
    analyzer.setProperty(Analyzer.IMPORT_PACKAGE,importPackages);
    StringBuilder bundleClasspath=new StringBuilder("String_Node_Str");
    Set<String> relativePathList=libResource.getRelativePathList();
    for (    String path : relativePathList) {
      Set<URL> resources=libResource.getResourcesByRelativePath(path);
      for (      URL url : resources) {
        File dependencyFile=new File(url.getPath());
        bundleClasspath.append(',').append(libResource.getDirectoryName()).append(PATH_SEPARATOR).append(dependencyFile.getName());
        if ("String_Node_Str".equals(dependencyFile.getName())) {
          bin.putResource(libResource.getDirectoryName() + PATH_SEPARATOR + dependencyFile.getName(),new FileResource(dependencyFile));
        }
      }
    }
    analyzer.setProperty(Analyzer.BUNDLE_CLASSPATH,bundleClasspath.toString());
  }
  analyzer.setProperty(Analyzer.EXPORT_SERVICE,"String_Node_Str" + bundleName + "String_Node_Str"+ itemType);
  Manifest manifest=null;
  try {
    manifest=analyzer.calcManifest();
  }
 catch (  IOException e) {
    throw e;
  }
catch (  Exception e) {
    ExceptionHandler.process(e);
  }
 finally {
    analyzer.close();
  }
  return manifest;
}