You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2015/08/27 13:58:46 UTC
[jira] [Commented] (GROOVY-7561) NPE in hashcode() for Integer with
2.4.4
[ https://issues.apache.org/jira/browse/GROOVY-7561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14716534#comment-14716534 ]
Paul King commented on GROOVY-7561:
-----------------------------------
Probably a duplicate of GROOVY-7518. We have a potential fix in mind but haven't finalised it yet.
> 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:java}
> import groovy.transform.CompileStatic
> import groovy.transform.Immutable
> @Immutable
> @CompileStatic
> class Foo {
> Integer bar
> }
> println new Foo().hashCode()
> {code}
> Stacktrace
> {code:java}
> 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}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)