defects4j-dissection icon indicating copy to clipboard operation
defects4j-dissection copied to clipboard

some patterns seem to overlap with other patterns.

Open zqudm opened this issue 3 years ago • 1 comments

For example, given the diff result of two java file /b_OrganizeImportsOperation.java and f_OrganizeImportsOperation.java.

32d31
< import org.eclipse.core.resources.ResourcesPlugin;
557c556
< 		return ResourcesPlugin.getWorkspace().getRoot();
---
> 		return fCompilationUnit.getResource();

What the pattern of this bug? That is, mcRepl(Method call replacement) and retExpChange (Return expression modification) , which one is better?

Thanks!

zqudm avatar Feb 14 '23 08:02 zqudm

Hi @zqudm, There is no better, since both repair actions apply in this case. In fact, you will see similar situations in many bugs. Best regards!

victor-sobreira avatar Feb 27 '23 16:02 victor-sobreira