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 2017/02/01 23:19:04 UTC

[jira] [Closed] (GROOVY-7542) CompileStatic class generation bug "register with message: rightShiftUnsigned and arguments X"

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

Paul King closed GROOVY-7542.
-----------------------------

> CompileStatic class generation bug "register with message: rightShiftUnsigned and arguments X"
> ----------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-7542
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7542
>             Project: Groovy
>          Issue Type: Bug
>          Components: Static compilation
>    Affects Versions: 2.4.4
>         Environment: Groovy Version: 2.4.4 JVM: 1.7.0_55 Vendor: Oracle Corporation OS: Linux
>            Reporter: Matias Bjarland
>            Assignee: Paul King
>             Fix For: 2.4.8
>
>
> Error caused by the following code snippet (was in the process of coding a crc64 algorithm): 
> {code:language=groovy}
> import groovy.transform.CompileStatic 
> test()
> @CompileStatic
> def test() {
>   long register = 0xfac432b10cd5e44aL  
>   
>   [1,2,3].each { int element -> 
>     int t = (int) (register >>> 56 ^ (long) element) & 0xff
>   }  
> }
> {code}
> execution example: 
> {code}
> $ groovy test.groovy 
> Caught: BUG! exception in phase 'class generation' in source unit '/home/mbjarland/test.groovy' At line 11 column 20
> On receiver: register with message: rightShiftUnsigned and arguments: 56
> This method should not have been called. Please try to create a simple example reproducing this error and filea bug report at https://issues.apache.org/jira/browse/GROOVY
> BUG! exception in phase 'class generation' in source unit '/home/mbjarland/projects/kohler.project/projects/full-publish/test.groovy' At line 11 column 20
> On receiver: register with message: rightShiftUnsigned and arguments: 56
> This method should not have been called. Please try to create a simple example reproducing this error and filea bug report at https://issues.apache.org/jira/browse/GROOVY
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)