defects4j icon indicating copy to clipboard operation
defects4j copied to clipboard

Unable to Apply Ground Truth Patch

Open danielding110 opened this issue 1 year ago • 0 comments

After checking out Cli-18, I attempted to apply the ground truth patch provided in the defects4j repo. I switched the - to + in order for the patch to patch the buggy code. After that, I ran with the following command: patch src/java/org/apache/commons/cli/PosixParser.java 18.src.patch Which failed with the following messages: patch: **** malformed patch at line 21: - }

Similar problem happens to other multi-hunk problems like Time-3, but the patch works fine for single hunk bugs like Cli-27.

danielding110 avatar Jul 04 '24 14:07 danielding110