defects4j
defects4j copied to clipboard
Unable to Apply Ground Truth Patch
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.