Description
When applying gumtree-spoon-ast diff to extract the edit scripts between buggy file and fixed one in Defects4j Chart 14, the edit scripts returned have some wrong or meaningless edit script. Specifically, when using gun diff , its result is
xy@xy-ThinkStation-P320:~/defects/chart/chart_14_buggy$ diff source/org/jfree/chart/plot/CategoryPlot.java ../chart_14_fix/source/org/jfree/chart/plot/CategoryPlot.java
2165a2166,2168
if (markers == null) { return false; }
2446a2450,2452
} if (markers == null) { return false;
However, gumtree-spoon-ast-diff gives the following edit scripts:
Delete TypeReference at org.jfree.chart.plot.XYPlot:277
org.jfree.chart.plot.Plot
Insert TypeReference at org.jfree.chart.plot.XYPlot:277
org.jfree.chart.plot.Plot
Insert If at org.jfree.chart.plot.XYPlot:2293
if (markers == null) {
return false;
}
Insert If at org.jfree.chart.plot.XYPlot:2532
if (markers == null) {
return false;
}