GumTreeDiff / gumtree

An awesome code differencing tool
https://github.com/GumTreeDiff/gumtree/wiki
GNU Lesser General Public License v3.0
933 stars 174 forks source link

no ast #283

Closed zqudm closed 2 years ago

zqudm commented 2 years ago
            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?

algomaster99 commented 2 years ago

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