[ 
https://issues.apache.org/jira/browse/GROOVY-6669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pascal Schumacher updated GROOVY-6669:
--------------------------------------
    Priority: Minor  (was: Major)

> 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
>            Priority: Minor
>             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)

Reply via email to