jodavimehran/code-tracker

Invalid Change History - jetty-servlet/src/main/java/org.eclipse.jetty.servlet.ServletHolder#doStart()$if(319-325)

Closed this issue · 3 comments

In commit 9c168866ffbb349d56501d11801f0418bdee3596 and file jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletHolder.java, element jetty-servlet/src/main/java/org.eclipse.jetty.servlet.ServletHolder#doStart()$if(319-325) was identified as being introduced, which may not be accurate.

Oracle filename: jetty.project-ServletHolder-doStart-IF_STATEMENT-10.json

L309 is duplicated to two blocks R319 and R301

Correct change history:

  "expectedChanges": [
    {
      "parentCommitId": "76d4859eda56dde318448741559671e54c78d7c9",
      "commitId": "9c168866ffbb349d56501d11801f0418bdee3596",
      "commitTime": 1368664024,
      "changeType": "body change",
      "elementFileBefore": "jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletHolder.java",
      "elementNameBefore": "jetty-servlet/src/main/java/org.eclipse.jetty.servlet.ServletHolder#doStart()$if(309-310)",
      "elementFileAfter": "jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletHolder.java",
      "elementNameAfter": "jetty-servlet/src/main/java/org.eclipse.jetty.servlet.ServletHolder#doStart()$if(319-325)"
    },
    {
      "parentCommitId": "76d4859eda56dde318448741559671e54c78d7c9",
      "commitId": "9c168866ffbb349d56501d11801f0418bdee3596",
      "commitTime": 1368664024,
      "changeType": "expression change",
      "elementFileBefore": "jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletHolder.java",
      "elementNameBefore": "jetty-servlet/src/main/java/org.eclipse.jetty.servlet.ServletHolder#doStart()$if(309-310)",
      "elementFileAfter": "jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletHolder.java",
      "elementNameAfter": "jetty-servlet/src/main/java/org.eclipse.jetty.servlet.ServletHolder#doStart()$if(319-325)"
    },
    {
      "parentCommitId": "ce2dc33a0a8a0cb4dc015cabea1b74c210859e95",
      "commitId": "3bcfc2946991975e804c8c00aad550aa0610db07",
      "commitTime": 1342074446,
      "changeType": "introduced",
      "elementFileBefore": "jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletHolder.java",
      "elementNameBefore": "jetty-servlet/src/main/java/org.eclipse.jetty.servlet.ServletHolder#doStart()$if(308-309)",
      "elementFileAfter": "jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletHolder.java",
      "elementNameAfter": "jetty-servlet/src/main/java/org.eclipse.jetty.servlet.ServletHolder#doStart()$if(308-309)",
      "comment": "new block"
    }
  ]

This issue was resolved with commit
tsantalis/RefactoringMiner@27cc205