Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.3.4, 2.4.0-rc-2, 2.4.1, 2.4.4, 2.5.0-beta-1
-
None
-
None
Description
def val = null class Helper { static boolean isNull(value) { value == null } } use(Helper){ assert val == null assert val.isNull() }
The last assertion fails because value isnt null but a NullObject and inside the isNull method, those are apparently not equal.
Attachments
Issue Links
- is related to
-
GROOVY-5769 NullObject leak
- Closed