gumtree
gumtree copied to clipboard
Modifications on Extends and Implements are not detected
Hello,
when using gumtree (swingdiff or webdiff) on this case :
no change is detected... However there is an obvious change on the class A declaration by using extends or implements.
When I look at the ITree and TreeContext, it seems that Gumtree is extracting all simpleTypes, ParametrizeType, and typeParameters without knowing if there are part of the extends or the implements declarations.
Could you try with https://github.com/SpoonLabs/gumtree-spoon-ast-diff/?
Hi, unfortunately no because I am using Gumtree v2.1.3 which includes TreeDelete and TreeInsert. There are not yet implemented in the current version of gumtree-spoon.
Or do you want me to try to see if the behavior is the same ?
I believe @monperrus is asking you to see if the behavior is the same. I know what is causing the problem : extends / implements is not part of the Jdt AST, it's only a property on the type node, therefore I have to rewrite the AST to make this token explicit. However it is a little tedious since there can be both extends and implements on a type definition.
I confirm that:
- gumtree-spoon depends on gumtree 2.1.2 and not on 2.1.3
- gumtree-spoon well implements the extends / implements detection
BTW, working well in GumTree now.