[
https://issues.apache.org/jira/browse/GROOVY-4487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles reassigned GROOVY-4487:
-----------------------------------
Assignee: Eric Milles
> null.class inconsistent with null.getClass() [NullObject]
> ---------------------------------------------------------
>
> Key: GROOVY-4487
> URL: https://issues.apache.org/jira/browse/GROOVY-4487
> Project: Groovy
> Issue Type: Bug
> Components: groovy-runtime
> Affects Versions: 1.8-beta-3
> Reporter: Roshan Dawrani
> Assignee: Eric Milles
> Priority: Minor
>
> Following the mailing list thread at
> http://groovy.markmail.org/message/hn6xu7btb6rjtfdb?q=%22Groovy+and+nulls%22,
> it is to suggest that we have the same semantics for following 2 versions for
> consistency sake:
> {code}
> null.class
> {code}
> and
> {code}
> null.getClass()
> {code}
> Currently the property access throws NPE and method acces gives the
> NullObject class.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)