incorrect data is being extracted from history points

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: High
    • 2.2
    • Affects Version/s: 2.1.0
    • Component/s: None
    • None

      the last of the inner classes in a file is being given the metrics of the whole file, rather than the class.

      eg. in the following xml

      <file name="AbstractInstrTask.java">
      <class name="AbstractInstrTask">
      <metrics coveredelements="64" coveredconditionals="16" conditionals="24" statements="63" coveredmethods="7" coveredstatements="41" methods="15" complexity="38" elements="102"/>
      </class>
      <class name="AbstractInstrTask.StatementContextDef">
      <metrics coveredelements="14" coveredconditionals="2" conditionals="4" statements="8" coveredmethods="6" coveredstatements="6" methods="6" complexity="10" elements="18"/>
      </class>
      <class name="AbstractInstrTask.MethodContextDef">
      <metrics coveredelements="15" coveredconditionals="4" conditionals="6" statements="9" coveredmethods="4" coveredstatements="7" methods="4" complexity="8" elements="19"/>
      </class>
      <metrics coveredelements="93" coveredconditionals="22" conditionals="34" ncloc="201" statements="80" coveredmethods="17" coveredstatements="54" loc="281" methods="25" classes="3" complexity="56" elements="139"/>
      ...
      the last of the inner classes (AbstractInstrTask.MethodContextDef) is given coveredelements="93" and elements="139" - rather than as it is supposed to have: coveredelements="15" and elements="19"

      the problem is somewhere in XmlConverter.getFromXmlFile()

            Assignee:
            Geoff Crain (Inactive)
            Reporter:
            Geoff Crain (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: