gumtree icon indicating copy to clipboard operation
gumtree copied to clipboard

no ast

Open zqudm opened this issue 3 years ago • 2 comments

zqudm avatar Jun 05 '22 06:06 zqudm

            String str1="this(duration, null, null);";
            String str2 = " super();";
            String left="./time_22_buggy/src/main/java/org/joda/time/base/BasePeriod.java";
            String right="./time_22_fix/src/main/java/org/joda/time/base/BasePeriod.java";
            final Diff result = new AstComparator().compare(str1,str2,left,right);
             System.out.println(result.toString());
            for (Operation o :result.getRootOperations())
                System.out.println(o.toString()+" ------ " + o.getNode().toString());

When i run the code above, its output is "no AST change" What is wrong?

zqudm avatar Jun 05 '22 06:06 zqudm

Hi @zqudm ! This was a gumtree-spoon issue and it is fixed in 1dc99ffbc4516fd6a4660ec67a25bc3c13cd3698.

algomaster99 avatar Jun 15 '22 15:06 algomaster99