groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Walter van Iterson (JIRA)" <>
Subject [jira] [Created] (GROOVY-8109) Unsupported operator with @CompileStatic causes BUG! () during compilation
Date Tue, 07 Mar 2017 08:57:33 GMT
Walter van Iterson created GROOVY-8109:

             Summary: Unsupported operator with @CompileStatic causes BUG! () during compilation
                 Key: GROOVY-8109
             Project: Groovy
          Issue Type: Bug
          Components: Compiler
    Affects Versions: 2.4.9
         Environment: GroovyConsole, Maven and IntelliJ (Windows 7)
            Reporter: Walter van Iterson
            Priority: Minor

When I compile the following code
class UnsupportedOperator { 
  def x = 'a' !== 'b' 
I get the following NullPointerException during compilation:
BUG! exception in phase 'instruction selection' in source unit 'ConsoleScript13' unexpected

Caused by: java.lang.NullPointerException

Without the @CompileStatic, I get the expected error message:
Caused by: org.codehaus.groovy.syntax.SyntaxException: Operator ("!==" at 3:17:  "!==" ) not
supported @ line 3, column 17.

This might be similar to

This message was sent by Atlassian JIRA

View raw message