Program: 34389
Project: 34389
Buggy source:
public void testGetFileForOutput() throws IOException {
  CachingFileManager fm=new CachingFileManager(CachingArchiveProvider.getDefault(),bCp,null,Source.JDK1_8,false,true);
  JavaFileObject res=(JavaFileObject)fm.getFileForOutput(StandardLocation.CLASS_PATH,"String_Node_Str","String_Node_Str",null);
  assertEquals(Arrays.asList("String_Node_Str"),toContent(Collections.<JavaFileObject>singleton(res)));
  assertEquals(Arrays.asList("String_Node_Str"),toInferedName(fm,Collections.<JavaFileObject>singleton(res)));
  fm=new CachingFileManager(CachingArchiveProvider.getDefault(),mvCp,null,Source.JDK1_8,false,true);
  res=(JavaFileObject)fm.getFileForOutput(StandardLocation.CLASS_PATH,"String_Node_Str","String_Node_Str",null);
  assertEquals(Arrays.asList("String_Node_Str"),toContent(Collections.<JavaFileObject>singleton(res)));
  assertEquals(Arrays.asList("String_Node_Str"),toInferedName(fm,Collections.<JavaFileObject>singleton(res)));
  fm=new CachingFileManager(CachingArchiveProvider.getDefault(),bCp,null,Source.JDK1_9,false,true);
  res=(JavaFileObject)fm.getFileForOutput(StandardLocation.CLASS_PATH,"String_Node_Str","String_Node_Str",null);
  assertEquals(Arrays.asList("String_Node_Str"),toContent(Collections.<JavaFileObject>singleton(res)));
  assertEquals(Arrays.asList("String_Node_Str"),toInferedName(fm,Collections.<JavaFileObject>singleton(res)));
  fm=new CachingFileManager(CachingArchiveProvider.getDefault(),mvCp,null,Source.JDK1_9,false,true);
  res=(JavaFileObject)fm.getFileForOutput(StandardLocation.CLASS_PATH,"String_Node_Str","String_Node_Str",null);
  assertEquals(Arrays.asList("String_Node_Str"),toContent(Collections.<JavaFileObject>singleton(res)));
  assertEquals(Arrays.asList("String_Node_Str"),toInferedName(fm,Collections.<JavaFileObject>singleton(res)));
}

Fixed version (ground truth):
public void testGetFileForOutput() throws IOException {
  CachingFileManager fm=new CachingFileManager(CachingArchiveProvider.getDefault(),bCp,null,SourceLevelUtils.JDK1_8,false,true);
  JavaFileObject res=(JavaFileObject)fm.getFileForOutput(StandardLocation.CLASS_PATH,"String_Node_Str","String_Node_Str",null);
  assertEquals(Arrays.asList("String_Node_Str"),toContent(Collections.<JavaFileObject>singleton(res)));
  assertEquals(Arrays.asList("String_Node_Str"),toInferedName(fm,Collections.<JavaFileObject>singleton(res)));
  fm=new CachingFileManager(CachingArchiveProvider.getDefault(),mvCp,null,SourceLevelUtils.JDK1_8,false,true);
  res=(JavaFileObject)fm.getFileForOutput(StandardLocation.CLASS_PATH,"String_Node_Str","String_Node_Str",null);
  assertEquals(Arrays.asList("String_Node_Str"),toContent(Collections.<JavaFileObject>singleton(res)));
  assertEquals(Arrays.asList("String_Node_Str"),toInferedName(fm,Collections.<JavaFileObject>singleton(res)));
  fm=new CachingFileManager(CachingArchiveProvider.getDefault(),bCp,null,SourceLevelUtils.JDK1_9,false,true);
  res=(JavaFileObject)fm.getFileForOutput(StandardLocation.CLASS_PATH,"String_Node_Str","String_Node_Str",null);
  assertEquals(Arrays.asList("String_Node_Str"),toContent(Collections.<JavaFileObject>singleton(res)));
  assertEquals(Arrays.asList("String_Node_Str"),toInferedName(fm,Collections.<JavaFileObject>singleton(res)));
  fm=new CachingFileManager(CachingArchiveProvider.getDefault(),mvCp,null,SourceLevelUtils.JDK1_9,false,true);
  res=(JavaFileObject)fm.getFileForOutput(StandardLocation.CLASS_PATH,"String_Node_Str","String_Node_Str",null);
  assertEquals(Arrays.asList("String_Node_Str"),toContent(Collections.<JavaFileObject>singleton(res)));
  assertEquals(Arrays.asList("String_Node_Str"),toInferedName(fm,Collections.<JavaFileObject>singleton(res)));
}