You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2015/10/28 18:57:27 UTC
[jira] [Resolved] (GROOVY-6669) Compile in groovyConsole
instantiates class
[ https://issues.apache.org/jira/browse/GROOVY-6669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pascal Schumacher resolved GROOVY-6669.
---------------------------------------
Resolution: Fixed
Assignee: Pascal Schumacher
Fix Version/s: 2.4.6
Pull request merged! Thanks!
> Compile in groovyConsole instantiates class
> -------------------------------------------
>
> Key: GROOVY-6669
> URL: https://issues.apache.org/jira/browse/GROOVY-6669
> Project: Groovy
> Issue Type: Bug
> Components: Groovy Console
> Affects Versions: 2.2.2
> Reporter: Luke Daley
> Assignee: Pascal Schumacher
> Fix For: 2.4.6
>
>
> Probably not serious, but put this in groovyConsole and compileâ¦
> {code}
> class OtherThing {
> OtherThing() {
> def v = null
> v.hashCode()
> }
> }
> {code}
> You'll get an NPE for the v.hashCode() line. If you add another statement before the class def (e.g. def c = null) it doesn't happen.
> Weird.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)