You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Matias Bjarland (JIRA)" <ji...@apache.org> on 2015/08/06 17:50:04 UTC

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

Matias Bjarland created GROOVY-7542:
---------------------------------------

             Summary: 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: class generator
    Affects Versions: 2.4.4
         Environment: Groovy Version: 2.4.4 JVM: 1.7.0_55 Vendor: Oracle Corporation OS: Linux

            Reporter: Matias Bjarland


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.4#6332)