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

equals() and hashCode() of MapEnvelope should be tolerant to nulls #922

Closed
butenkos opened this issue Jul 5, 2018 · 20 comments
Closed

equals() and hashCode() of MapEnvelope should be tolerant to nulls #922

butenkos opened this issue Jul 5, 2018 · 20 comments
Labels

Comments

@butenkos
Copy link

butenkos commented Jul 5, 2018

Methods equals() and hashCode() of abstract class MapEnvelope fail with NullPointerException when enveloped Map contains null values.
There are unit-tests covering this behaviour: test case MapEnvelopeTest, methods hashCodeFailsOnNull() and equalFailsOnNull().
Is it really a desired behaviour? A lot of Map implementations (including standard implementations from jdk) support null keys or/and values. With the current implementation we cannot compare instances of MapEnvelope which incapsulate Maps with nulls and store them in collections.

equals() and hashCode() of MapEnvelope should be tolerant to nulls in order to be able to work correctly with enveloped Maps which may contain null keys or/and values, and to be able to be stored in collections

@0crat
Copy link
Collaborator

0crat commented Jul 5, 2018

@llorllale/z please, pay attention to this issue

@llorllale
Copy link
Contributor

@butenkos thanks, you're right.

We have MapNoNulls decorator that users can use if null is not tolerated.

@llorllale
Copy link
Contributor

@0crat in

@llorllale llorllale added the bug label Jul 5, 2018
@0crat 0crat added the scope label Jul 5, 2018
@0crat
Copy link
Collaborator

0crat commented Jul 5, 2018

@0crat in (here)

@llorllale Job #922 is now in scope, role is DEV

@0crat
Copy link
Collaborator

0crat commented Jul 5, 2018

Bug was reported, see §29: +15 point(s) just awarded to @butenkos/z

@0crat
Copy link
Collaborator

0crat commented Mar 18, 2019

The job #922 assigned to @dennis00010011b/z, here is why; the budget is 30 minutes, see §4; please, read §8 and §9; if the task is not clear, read this and this; there will be no monetary reward for this job

@0crat
Copy link
Collaborator

0crat commented Mar 30, 2019

The job #922 assigned to @victornoel/z, here is why; the budget is 30 minutes, see §4; please, read §8 and §9; if the task is not clear, read this and this; there will be no monetary reward for this job

@victornoel
Copy link
Collaborator

@0crat refuse

@0crat
Copy link
Collaborator

0crat commented Mar 30, 2019

@0crat refuse (here)

@victornoel The user @victornoel/z resigned from #922, please stop working. Reason for job resignation: Order was cancelled

@0crat
Copy link
Collaborator

0crat commented Mar 30, 2019

Tasks refusal is discouraged, see §6: -15 point(s) just awarded to @victornoel/z

@0crat
Copy link
Collaborator

0crat commented Apr 2, 2019

The job #922 assigned to @umbrah/z, here is why; the budget is 30 minutes, see §4; please, read §8 and §9; if the task is not clear, read this and this; there will be no monetary reward for this job

@vladhss
Copy link
Contributor

vladhss commented Apr 15, 2019

@llorllale Can we close it? PR was merged

@llorllale
Copy link
Contributor

@Umbrah always as the ticket reporter first

@vladhss
Copy link
Contributor

vladhss commented Apr 16, 2019

@butenkos Can we close it?

@0crat
Copy link
Collaborator

0crat commented Apr 17, 2019

@sereshqua/z please review this job completed by @umbrah/z, as in §30; the job will be fully closed and all payments will be made when the quality review is completed

@0crat 0crat removed the scope label Apr 17, 2019
@0crat
Copy link
Collaborator

0crat commented Apr 17, 2019

The job #922 is now out of scope

@0crat
Copy link
Collaborator

0crat commented Apr 17, 2019

Job #922 is not in the agenda of @umbrah/z, can't inspect

@sereshqua
Copy link

@0crat quality good

@0crat
Copy link
Collaborator

0crat commented Apr 17, 2019

Quality review completed: +4 point(s) just awarded to @sereshqua/z

@0crat
Copy link
Collaborator

0crat commented Apr 17, 2019

Order was finished, quality is "good": +35 point(s) just awarded to @umbrah/z

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

No branches or pull requests

6 participants