[
https://issues.apache.org/jira/browse/GROOVY-8109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15900169#comment-15900169
]
ASF GitHub Bot commented on GROOVY-8109:
----------------------------------------
GitHub user paulk-asert opened a pull request:
https://github.com/apache/groovy/pull/509
GROOVY-8109: Unsupported operator with @CompileStatic causes BUG! () …
…during compilation
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/paulk-asert/groovy groovy8109
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/groovy/pull/509.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #509
----
commit cf3cb17e6af87b1eb4188e496f4b8c9fa2f2820a
Author: paulk <[email protected]>
Date: 2017-03-07T21:08:07Z
GROOVY-8109: Unsupported operator with @CompileStatic causes BUG! () during
compilation
----
> 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
> Priority: Minor
>
> 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)