pouryafard75 / RM-ASTDiff

MIT License
2 stars 1 forks source link

Anonymous class inside the initializer of the attribute not matched #56

Closed pouryafard75 closed 1 year ago

pouryafard75 commented 1 year ago

https://github.com/apache/cassandra/commit/9a3fa887cfa03c082f249d1d4003d87c14ba5d24 CompressedSegment.java

In this case, the attribute is reported as a common attribute since the only change is the order of static and private modifiers. Hence, it is not reported inside attributeDiffList. For the common attributes, the previous logic mapped the entire subtree in case of having the isomorphic subtrees on both sides, but due to the change in the order of modifiers, the subtrees are not isomorphic anymore.

image
pouryafard75 commented 1 year ago

The fix focuses on checking the variableDelcarionFragment of attributes and mappings those recursively.