groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dario Bertini (JIRA)" <>
Subject [jira] [Created] (GROOVY-7914) Comparison operator does not delegate to .equals() for null
Date Mon, 22 Aug 2016 15:31:20 GMT
Dario Bertini created GROOVY-7914:

             Summary: Comparison operator does not delegate to .equals() for null
                 Key: GROOVY-7914
             Project: Groovy
          Issue Type: Bug
            Reporter: Dario Bertini

This might be related to
supposedly a PR over there has been merged, but the bug is still flagged as open (and indeed,
I can locally reproduce it).

This one instead caused problems when handling org.json.JSONObject

That type uses its own internal JSONObject.Null class to represent null inside json (which
is useful to distinguish between keys being missing, and values explicitly being set to null)

it overrides .equals(other) to check if the other object is null, but that method is never


JSONObject.NULL == null

This message was sent by Atlassian JIRA

View raw message