[ https://issues.apache.org/jira/browse/GROOVY-7561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mariusz Smykuła updated GROOVY-7561: ------------------------------------ Affects Version/s: 2.4.4 Description: {code:groovy} import groovy.transform.CompileStatic import groovy.transform.Immutable @Immutable @CompileStatic class Foo { Integer bar } println new Foo().hashCode() {code:groovy} {code:groovy} Caught: java.lang.NullPointerException java.lang.NullPointerException at Foo.hashCode(scratch) at Foo$hashCode.call(Unknown Source) at scratch.run(scratch:10) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140) {code:groovy} was: import groovy.transform.CompileStatic import groovy.transform.Immutable import groovy.transform.CompileStatic import groovy.transform.Immutable @Immutable @CompileStatic class Foo { Integer bar } println new Foo().hashCode() Caught: java.lang.NullPointerException java.lang.NullPointerException at Foo.hashCode(scratch) at Foo$hashCode.call(Unknown Source) at scratch.run(scratch:10) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140) > NPE in hashcode() for Integer with 2.4.4 > ---------------------------------------- > > Key: GROOVY-7561 > URL: https://issues.apache.org/jira/browse/GROOVY-7561 > Project: Groovy > Issue Type: Bug > Affects Versions: 2.4.4 > Reporter: Mariusz Smykuła > > {code:groovy} > import groovy.transform.CompileStatic > import groovy.transform.Immutable > @Immutable > @CompileStatic > class Foo { > Integer bar > } > println new Foo().hashCode() > {code:groovy} > {code:groovy} > Caught: java.lang.NullPointerException > java.lang.NullPointerException > at Foo.hashCode(scratch) > at Foo$hashCode.call(Unknown Source) > at scratch.run(scratch:10) > at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140) > {code:groovy} -- This message was sent by Atlassian JIRA (v6.3.4#6332)