-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
FileSet Instances with Identical Contents Fail Equality, Have Inconsistent Hash Codes #43
Comments
There's a straightforward solution using |
michaelahlers
pushed a commit
to michaelahlers/flapdoodle-embed-process
that referenced
this issue
Aug 15, 2016
…odle-oss/de.flapdoodle.embed.process/43)
michaelahlers
pushed a commit
to michaelahlers/flapdoodle-embed-process
that referenced
this issue
Aug 15, 2016
…odle-oss#43) These make sense when the class itself is final, but I won't make that assumption. If upstream maintainers make `FileSet.Entry` final, this suppression can (and should) be removed.
michaelahlers
pushed a commit
to michaelahlers/flapdoodle-embed-process
that referenced
this issue
Aug 15, 2016
michaelahlers
pushed a commit
to michaelahlers/flapdoodle-embed-process
that referenced
this issue
Aug 15, 2016
…roject conventions (for flapdoodle-oss#43)
michaelahlers
pushed a commit
to michaelahlers/flapdoodle-embed-process
that referenced
this issue
Aug 15, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Two
FileSet
instances with identical contents are reflexively equal (by reference) but not intrinsically equal (by contents), and they exhibit inconsistent hash codes. The same statement is true ofFileSet.Entry
. Apart from missing implementations onFileSet
itself, this is caused byFileSet.Entry#_matchingPattern
participating inequality
andhashCode
butjava.util.regex.Pattern
does not implement either.The text was updated successfully, but these errors were encountered: