Program: 34387
Project: 34387
Buggy source:
public void testGetJavaFileForInput(){
  CachingFileManager fm=new CachingFileManager(CachingArchiveProvider.getDefault(),bCp,Source.JDK1_8,false,true);
  JavaFileObject res=fm.getJavaFileForInput(StandardLocation.CLASS_PATH,"String_Node_Str",JavaFileObject.Kind.CLASS);
  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,Source.JDK1_8,false,true);
  res=fm.getJavaFileForInput(StandardLocation.CLASS_PATH,"String_Node_Str",JavaFileObject.Kind.CLASS);
  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,Source.JDK1_9,false,true);
  res=fm.getJavaFileForInput(StandardLocation.CLASS_PATH,"String_Node_Str",JavaFileObject.Kind.CLASS);
  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,Source.JDK1_9,false,true);
  res=fm.getJavaFileForInput(StandardLocation.CLASS_PATH,"String_Node_Str",JavaFileObject.Kind.CLASS);
  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 testGetJavaFileForInput(){
  CachingFileManager fm=new CachingFileManager(CachingArchiveProvider.getDefault(),bCp,SourceLevelUtils.JDK1_8,false,true);
  JavaFileObject res=fm.getJavaFileForInput(StandardLocation.CLASS_PATH,"String_Node_Str",JavaFileObject.Kind.CLASS);
  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,SourceLevelUtils.JDK1_8,false,true);
  res=fm.getJavaFileForInput(StandardLocation.CLASS_PATH,"String_Node_Str",JavaFileObject.Kind.CLASS);
  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,SourceLevelUtils.JDK1_9,false,true);
  res=fm.getJavaFileForInput(StandardLocation.CLASS_PATH,"String_Node_Str",JavaFileObject.Kind.CLASS);
  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,SourceLevelUtils.JDK1_9,false,true);
  res=fm.getJavaFileForInput(StandardLocation.CLASS_PATH,"String_Node_Str",JavaFileObject.Kind.CLASS);
  assertEquals(Arrays.asList("String_Node_Str"),toContent(Collections.<JavaFileObject>singleton(res)));
  assertEquals(Arrays.asList("String_Node_Str"),toInferedName(fm,Collections.<JavaFileObject>singleton(res)));
}