Program: 34391
Project: 34391
Buggy source:
public void testListRecursive(){
  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),true);
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str"),toContent(res));
  assertEquals(Arrays.asList("String_Node_Str","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),true);
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str"),toContent(res));
  assertEquals(Arrays.asList("String_Node_Str","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),true);
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str"),toContent(res));
  assertEquals(Arrays.asList("String_Node_Str","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),true);
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str"),toContent(res));
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str"),toInferedName(fm,res));
}

Fixed version (ground truth):
public void testListRecursive(){
  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),true);
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str"),toContent(res));
  assertEquals(Arrays.asList("String_Node_Str","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),true);
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str"),toContent(res));
  assertEquals(Arrays.asList("String_Node_Str","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),true);
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str"),toContent(res));
  assertEquals(Arrays.asList("String_Node_Str","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),true);
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str"),toContent(res));
  assertEquals(Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str"),toInferedName(fm,res));
}