Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collections-17's buggy version is wrong #620

Open
zeyugao opened this issue Sep 27, 2024 · 3 comments
Open

Collections-17's buggy version is wrong #620

zeyugao opened this issue Sep 27, 2024 · 3 comments

Comments

@zeyugao
Copy link

zeyugao commented Sep 27, 2024

Original issue: https://issues.apache.org/jira/browse/COLLECTIONS-239

The current reverted patch is https://github.com/rjust/defects4j/blob/master/framework/projects/Collections/patches/17.src.patch and it is originate from this commit.

However, according to the surrounding commit messages, the COLLECTIONS-239 is fixed by multiple commit, including apache/commons-collections@459f14b and apache/commons-collections@b7327a4

The current patch (17.src.patch) only represents the effect to keep backwards compatibility, instead of revealing the original buggy code.

@zeyugao
Copy link
Author

zeyugao commented Sep 27, 2024

btw, I don't think the code can fairly be labeled as "buggy" at all. It simply attempts to implement a new feature. You can see the changes in the following diff: apache/commons-collections@b7327a4.

@rjust
Copy link
Owner

rjust commented Oct 1, 2024

Related to partial and multi-commit bugs (#619).

@rjust
Copy link
Owner

rjust commented Oct 1, 2024

Similar to issue #619, we would welcome contributions that add metadata for the bugs in the dataset.

What constitutes a bug vs. a feature is a tricky question, though. For example, is a missing functionality stated in a specification, together with a triggering test that exposes the missing functionality, a bug or a feature? Does the answer depend on whether the specification has evolved or whether the functionality was missing all along? Rather than trying to narrow down the definitions for bug vs. feature, I think it might be helpful to characterize the type of change required to fix a failing test. These characteristics can then be correlated with different definitions of bug vs. feature as well as efficacy results for tools etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants