[ 
https://issues.apache.org/jira/browse/GROOVY-6958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15048055#comment-15048055
 ] 

ASF GitHub Bot commented on GROOVY-6958:
----------------------------------------

GitHub user shils opened a pull request:

    https://github.com/apache/groovy/pull/207

    GROOVY-6958 null != NullObject when using categories

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/shils/incubator-groovy GROOVY-6958

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/groovy/pull/207.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #207
    
----
commit 71c92b3dcc5dcbe92cc31869ecaf63eb1aed56c0
Author: Shil Sinha <[email protected]>
Date:   2015-12-09T05:03:43Z

    GROOVY-6958 null != NullObject when using categories

----


> null != NullObject when using Categories
> ----------------------------------------
>
>                 Key: GROOVY-6958
>                 URL: https://issues.apache.org/jira/browse/GROOVY-6958
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.3.4, 2.4.0-rc-2, 2.4.1, 2.4.4, 2.5.0-beta-1
>            Reporter: Jochen Kemnade
>            Priority: Minor
>
> {code}
> def val = null
> class Helper {
>   
>   static boolean isNull(value) {
>     value == null 
>   }
>   
> }
> use(Helper){
>   assert val == null
>   assert val.isNull()
> }
> {code}
> The last assertion fails because value isnt {{null}} but a {{NullObject}} and 
> inside the {{isNull}} method, those are apparently not equal.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to