SpoonLabs / npefix

Open-science code of the program repair tool described in "Dynamic Patch Generation for Null Pointer Exceptions Using Metaprogramming" (SANER'17)
https://hal.archives-ouvertes.fr/hal-01419861/document
14 stars 9 forks source link

NPEFix doesn't find patches outside class files #27

Open andre15silva opened 3 years ago

andre15silva commented 3 years ago

NPEFix isn't able to produce textual patches for NPE's that could be fixed with changes in files outside of the class files in which the error occurs.

This is can be exemplified by https://github.com/andre15silva/failingProject/tree/npefix-scope, where changes to nopol_example_12.NopolExamplePackageFile.java or nopol_example_12.NopolExampleStackFile.java could fix the respective error, but only textual patches for nopol_example_12.NopolExample.java are produced.

This behavior can be found in https://github.com/eclipse/repairnator/pull/1172#issuecomment-785136025, where the scope option influences what files are passed to NPEFix.