Program: 17911
Project: 17911
Buggy source:
/** 
 * @param reader
 * @param eia
 * @param readProperties
 * @param atomLinkType
 * @param atomLinkRel
 * @throws XMLStreamException
 * @throws EntityProviderException
 * @throws EdmException
 */
private void readInlineContent(final XMLStreamReader reader,final EntityInfoAggregator eia,final EntityProviderReadProperties readProperties,final String atomLinkType,final String atomLinkRel) throws XMLStreamException, EntityProviderException, EdmException {
  String navigationPropertyName=atomLinkRel.substring(Edm.NAMESPACE_REL_2007_08.length());
  EdmNavigationProperty navigationProperty=(EdmNavigationProperty)eia.getEntityType().getProperty(navigationPropertyName);
  EdmEntitySet entitySet=eia.getEntitySet().getRelatedEntitySet(navigationProperty);
  EntityInfoAggregator inlineEia=EntityInfoAggregator.create(entitySet);
  final EntityProviderReadProperties inlineProperties=createInlineProperties(readProperties,navigationProperty);
  boolean isFeed=isInlineFeedValidated(reader,eia,atomLinkType,navigationPropertyName);
  List<ODataEntry> inlineEntries=new ArrayList<ODataEntry>();
  while (!(reader.isEndElement() && Edm.NAMESPACE_M_2007_08.equals(reader.getNamespaceURI()) && FormatXml.M_INLINE.equals(reader.getLocalName()))) {
    if (reader.isStartElement() && Edm.NAMESPACE_ATOM_2005.equals(reader.getNamespaceURI()) && FormatXml.ATOM_ENTRY.equals(reader.getLocalName())) {
      XmlEntryConsumer xec=new XmlEntryConsumer();
      ODataEntry inlineEntry=xec.readEntry(reader,inlineEia,inlineProperties);
      inlineEntries.add(inlineEntry);
    }
    reader.next();
  }
  updateExpandSelectTree(navigationPropertyName,inlineEntries);
  updateReadProperties(readProperties,navigationPropertyName,navigationProperty,isFeed,inlineEntries);
  reader.require(XMLStreamConstants.END_ELEMENT,Edm.NAMESPACE_M_2007_08,FormatXml.M_INLINE);
}

Fixed version (ground truth):
/** 
 * Inline content was found and   {@link XMLStreamReader} already points to <m:inline> tag.
 * @param reader
 * @param eia
 * @param readProperties
 * @param atomLinkType the atom <code>type</code> attribute value of the <code>link</code> tag
 * @param atomLinkRel the atom <code>rel</code> attribute value of the <code>link</code> tag
 * @throws XMLStreamException
 * @throws EntityProviderException
 * @throws EdmException
 */
private void readInlineContent(final XMLStreamReader reader,final EntityInfoAggregator eia,final EntityProviderReadProperties readProperties,final String atomLinkType,final String atomLinkRel) throws XMLStreamException, EntityProviderException, EdmException {
  String navigationPropertyName=atomLinkRel.substring(Edm.NAMESPACE_REL_2007_08.length());
  EdmNavigationProperty navigationProperty=(EdmNavigationProperty)eia.getEntityType().getProperty(navigationPropertyName);
  EdmEntitySet entitySet=eia.getEntitySet().getRelatedEntitySet(navigationProperty);
  EntityInfoAggregator inlineEia=EntityInfoAggregator.create(entitySet);
  final EntityProviderReadProperties inlineProperties=createInlineProperties(readProperties,navigationProperty);
  boolean isFeed=isInlineFeedValidated(reader,eia,atomLinkType,navigationPropertyName);
  List<ODataEntry> inlineEntries=new ArrayList<ODataEntry>();
  while (!(reader.isEndElement() && Edm.NAMESPACE_M_2007_08.equals(reader.getNamespaceURI()) && FormatXml.M_INLINE.equals(reader.getLocalName()))) {
    if (reader.isStartElement() && Edm.NAMESPACE_ATOM_2005.equals(reader.getNamespaceURI()) && FormatXml.ATOM_ENTRY.equals(reader.getLocalName())) {
      XmlEntryConsumer xec=new XmlEntryConsumer();
      ODataEntry inlineEntry=xec.readEntry(reader,inlineEia,inlineProperties);
      inlineEntries.add(inlineEntry);
    }
    reader.next();
  }
  updateExpandSelectTree(navigationPropertyName,inlineEntries);
  updateReadProperties(readProperties,navigationPropertyName,navigationProperty,isFeed,inlineEntries);
  reader.require(XMLStreamConstants.END_ELEMENT,Edm.NAMESPACE_M_2007_08,FormatXml.M_INLINE);
}