defects4j icon indicating copy to clipboard operation
defects4j copied to clipboard

bug method files

Open lemon1-ui opened this issue 8 months ago • 1 comments

@rjust Hello,how to obtain the method file where each defect is located? Rather than the entire bug-like file.

lemon1-ui avatar May 16 '25 10:05 lemon1-ui

Hi @lemon1-ui,

Currently, there is no Defects4J command that provides this information. You can use a source-code or byte-code analysis to map patched lines to method names, including (generated) constructors and static initializers.

Best, René

rjust avatar Oct 01 '25 08:10 rjust