groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GROOVY-8109) Unsupported operator with @CompileStatic causes BUG! () during compilation
Date Wed, 08 Mar 2017 05:48:38 GMT

    [ https://issues.apache.org/jira/browse/GROOVY-8109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15900758#comment-15900758
] 

ASF GitHub Bot commented on GROOVY-8109:
----------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/groovy/pull/509


> Unsupported operator with @CompileStatic causes BUG! () during compilation
> --------------------------------------------------------------------------
>
>                 Key: GROOVY-8109
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8109
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 2.4.9
>         Environment: GroovyConsole (2.4.8), Maven (2.4.9) and IntelliJ, All in Windows
7
>            Reporter: Walter van Iterson
>            Assignee: Paul King
>            Priority: Minor
>             Fix For: 2.4.10
>
>
> When I compile the following code
> {code:title=UnsupportedOperator.groovy|borderStyle=solid}
> @groovy.transform.CompileStatic  
> class UnsupportedOperator { 
>   def x = 'a' !== 'b' 
> } 
> {code}
>  
> I get the following NullPointerException during compilation:
> {noformat}
> BUG! exception in phase 'instruction selection' in source unit 'ConsoleScript13' unexpected
NullpointerException
> Caused by: java.lang.NullPointerException
> {noformat}
> Without the @CompileStatic, I get the expected error message:
> {noformat}
> Caused by: org.codehaus.groovy.syntax.SyntaxException: Operator ("!==" at 3:17:  "!=="
) not supported @ line 3, column 17.
> {noformat}
> This might be similar to https://github.com/groovy/groovy-eclipse/issues/179



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

Mime
View raw message