Program: 34392
Project: 34392
Buggy source:
public void testList(){
  CachingFileManager fm=new CachingFileManager(CachingArchiveProvider.getDefault(),bCp,Source.JDK1_8,false,true);
  Iterable<JavaFileObject> res=fm.list(StandardLocation.CLASS_PATH,"String_Node_Str",EnumSet.of(JavaFileObject.Kind.CLASS),false);
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str"),toContent(res));
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str"),toInferedName(fm,res));
  fm=new CachingFileManager(CachingArchiveProvider.getDefault(),mvCp,Source.JDK1_8,false,true);
  res=fm.list(StandardLocation.CLASS_PATH,"String_Node_Str",EnumSet.of(JavaFileObject.Kind.CLASS),false);
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str"),toContent(res));
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str"),toInferedName(fm,res));
  fm=new CachingFileManager(CachingArchiveProvider.getDefault(),bCp,Source.JDK1_9,false,true);
  res=fm.list(StandardLocation.CLASS_PATH,"String_Node_Str",EnumSet.of(JavaFileObject.Kind.CLASS),false);
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str"),toContent(res));
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str"),toInferedName(fm,res));
  fm=new CachingFileManager(CachingArchiveProvider.getDefault(),mvCp,Source.JDK1_9,false,true);
  res=fm.list(StandardLocation.CLASS_PATH,"String_Node_Str",EnumSet.of(JavaFileObject.Kind.CLASS),false);
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str"),toContent(res));
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str"),toInferedName(fm,res));
}

Fixed version (ground truth):
public void testList(){
  CachingFileManager fm=new CachingFileManager(CachingArchiveProvider.getDefault(),bCp,SourceLevelUtils.JDK1_8,false,true);
  Iterable<JavaFileObject> res=fm.list(StandardLocation.CLASS_PATH,"String_Node_Str",EnumSet.of(JavaFileObject.Kind.CLASS),false);
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str"),toContent(res));
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str"),toInferedName(fm,res));
  fm=new CachingFileManager(CachingArchiveProvider.getDefault(),mvCp,SourceLevelUtils.JDK1_8,false,true);
  res=fm.list(StandardLocation.CLASS_PATH,"String_Node_Str",EnumSet.of(JavaFileObject.Kind.CLASS),false);
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str"),toContent(res));
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str"),toInferedName(fm,res));
  fm=new CachingFileManager(CachingArchiveProvider.getDefault(),bCp,SourceLevelUtils.JDK1_9,false,true);
  res=fm.list(StandardLocation.CLASS_PATH,"String_Node_Str",EnumSet.of(JavaFileObject.Kind.CLASS),false);
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str"),toContent(res));
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str"),toInferedName(fm,res));
  fm=new CachingFileManager(CachingArchiveProvider.getDefault(),mvCp,SourceLevelUtils.JDK1_9,false,true);
  res=fm.list(StandardLocation.CLASS_PATH,"String_Node_Str",EnumSet.of(JavaFileObject.Kind.CLASS),false);
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str"),toContent(res));
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str"),toInferedName(fm,res));
}