Skip to content

Wrong edit scripts #235

Open
Open
@zqxyus

Description

@zqxyus

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions