[
https://issues.apache.org/jira/browse/GROOVY-4487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles resolved GROOVY-4487.
---------------------------------
Fix Version/s: 5.0.0-alpha-3
Resolution: Fixed
https://github.com/apache/groovy/commit/7cc5f9a4e2ea7e5a776f7665a38fb059ec645854
> 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
> Fix For: 5.0.0-alpha-3
>
>
> 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)