Program: 19173
Project: 19173
Buggy source:
/** 
 * Tests object types.
 */
public void testObjectType() throws Exception {
  PrototypeObjectType objectType=new PrototypeObjectType(registry,null,null);
  assertFalse(objectType.isAllType());
  assertFalse(objectType.isArrayType());
  assertFalse(objectType.isDateType());
  assertFalse(objectType.isFunctionPrototypeType());
  assertTrue(objectType.getImplicitPrototype() == OBJECT_TYPE);
  assertTrue(objectType.isSubtypeOf(ALL_TYPE));
  assertFalse(objectType.isSubtypeOf(STRING_OBJECT_TYPE));
  assertFalse(objectType.isSubtypeOf(NUMBER_TYPE));
  assertFalse(objectType.isSubtypeOf(functionType));
  assertFalse(objectType.isSubtypeOf(NULL_TYPE));
  assertFalse(objectType.isSubtypeOf(DATE_TYPE));
  assertTrue(objectType.isSubtypeOf(OBJECT_TYPE));
  assertTrue(objectType.isSubtypeOf(unresolvedNamedType));
  assertFalse(objectType.isSubtypeOf(namedGoogBar));
  assertFalse(objectType.isSubtypeOf(REGEXP_TYPE));
  assertNull(objectType.autoboxesTo());
  assertCanTestForEqualityWith(objectType,NUMBER_TYPE);
  assertFalse(objectType.matchesNumberContext());
  assertFalse(objectType.matchesNumberContext());
  assertTrue(objectType.matchesObjectContext());
  assertFalse(objectType.matchesStringContext());
  assertFalse(objectType.matchesNumberContext());
  assertFalse(objectType.isNullable());
  assertFalse(objectType.isVoidable());
  assertTrue(createNullableType(objectType).isNullable());
  assertTrue(createUnionType(objectType,VOID_TYPE).isVoidable());
  assertEquals("String_Node_Str",objectType.toString());
  assertEquals(null,objectType.getDisplayName());
  assertFalse(objectType.hasReferenceName());
  assertEquals("String_Node_Str",new PrototypeObjectType(registry,"String_Node_Str",null).getDisplayName());
  Asserts.assertResolvesToSame(objectType);
}

Fixed version (ground truth):
/** 
 * Tests object types.
 */
public void testObjectType() throws Exception {
  PrototypeObjectType objectType=new PrototypeObjectType(registry,null,null);
  assertFalse(objectType.isAllType());
  assertFalse(objectType.isArrayType());
  assertFalse(objectType.isDateType());
  assertFalse(objectType.isFunctionPrototypeType());
  assertSame(objectType.getImplicitPrototype(),OBJECT_TYPE);
  assertTrue(objectType.isSubtypeOf(ALL_TYPE));
  assertFalse(objectType.isSubtypeOf(STRING_OBJECT_TYPE));
  assertFalse(objectType.isSubtypeOf(NUMBER_TYPE));
  assertFalse(objectType.isSubtypeOf(functionType));
  assertFalse(objectType.isSubtypeOf(NULL_TYPE));
  assertFalse(objectType.isSubtypeOf(DATE_TYPE));
  assertTrue(objectType.isSubtypeOf(OBJECT_TYPE));
  assertTrue(objectType.isSubtypeOf(unresolvedNamedType));
  assertFalse(objectType.isSubtypeOf(namedGoogBar));
  assertFalse(objectType.isSubtypeOf(REGEXP_TYPE));
  assertNull(objectType.autoboxesTo());
  assertCanTestForEqualityWith(objectType,NUMBER_TYPE);
  assertFalse(objectType.matchesNumberContext());
  assertFalse(objectType.matchesNumberContext());
  assertTrue(objectType.matchesObjectContext());
  assertFalse(objectType.matchesStringContext());
  assertFalse(objectType.matchesNumberContext());
  assertFalse(objectType.isNullable());
  assertFalse(objectType.isVoidable());
  assertTrue(createNullableType(objectType).isNullable());
  assertTrue(createUnionType(objectType,VOID_TYPE).isVoidable());
  assertEquals("String_Node_Str",objectType.toString());
  assertEquals(null,objectType.getDisplayName());
  assertFalse(objectType.hasReferenceName());
  assertEquals("String_Node_Str",new PrototypeObjectType(registry,"String_Node_Str",null).getDisplayName());
  Asserts.assertResolvesToSame(objectType);
}