[jira] [Updated] (GROOVY-8600) BUG! exception in phase 'instruction selection'
[ https://issues.apache.org/jira/browse/GROOVY-8600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul King updated GROOVY-8600: -- Fix Version/s: 2.5.0 > BUG! exception in phase 'instruction selection' > --- > > Key: GROOVY-8600 > URL: https://issues.apache.org/jira/browse/GROOVY-8600 > Project: Groovy > Issue Type: Bug > Components: class generator >Affects Versions: 2.4.15 > Environment: Windows 10, IntelliJ IDEA 2018.1.3, > org.codehaus.groovy:groovy-all:2.4.15 >Reporter: Alexsey Konstantinov >Assignee: Paul King >Priority: Major > Fix For: 2.4.16, 2.5.0 > > > An error occurred when compiling a class of this construction: > {code} > import groovy.transform.CompileStatic > class TestCompileStatic { > Closure func > @CompileStatic > void testCallFunc () { > {color:#d04437}if (func != null) func('test'){color} > } > } > {code} > > BUG! exception in phase 'instruction selection' in source unit > > 'TestCompileStatic.groovy' unexpected NullpointerException > if you change the code to this: > {{{color:#8eb021}if (func != null) func.call('test'){color}}} > then the class is compiled correctly -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (GROOVY-8600) BUG! exception in phase 'instruction selection'
[ https://issues.apache.org/jira/browse/GROOVY-8600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul King updated GROOVY-8600: -- Description: An error occurred when compiling a class of this construction: {code} import groovy.transform.CompileStatic class TestCompileStatic { Closure func @CompileStatic void testCallFunc () { {color:#d04437}if (func != null) func('test'){color} } } {code} > BUG! exception in phase 'instruction selection' in source unit > 'TestCompileStatic.groovy' unexpected NullpointerException if you change the code to this: {{{color:#8eb021}if (func != null) func.call('test'){color}}} then the class is compiled correctly was: An error occurred when compiling a class of this construction: {{import groovy.transform.CompileStatic}} {{class TestCompileStatic {}} {{ Closure func}} {{ @CompileStatic}} {{ void testCallFunc () {}} {{ {color:#d04437}if (func != null) func('test'){color}}} {{ }}} {{}}} > BUG! exception in phase 'instruction selection' in source unit > 'TestCompileStatic.groovy' unexpected NullpointerException if you change the code to this: {{{color:#8eb021}if (func != null) func.call('test'){color}}} then the class is compiled correctly > BUG! exception in phase 'instruction selection' > --- > > Key: GROOVY-8600 > URL: https://issues.apache.org/jira/browse/GROOVY-8600 > Project: Groovy > Issue Type: Bug > Components: class generator >Affects Versions: 2.4.15 > Environment: Windows 10, IntelliJ IDEA 2018.1.3, > org.codehaus.groovy:groovy-all:2.4.15 >Reporter: Alexsey Konstantinov >Priority: Major > > An error occurred when compiling a class of this construction: > {code} > import groovy.transform.CompileStatic > class TestCompileStatic { > Closure func > @CompileStatic > void testCallFunc () { > {color:#d04437}if (func != null) func('test'){color} > } > } > {code} > > BUG! exception in phase 'instruction selection' in source unit > > 'TestCompileStatic.groovy' unexpected NullpointerException > if you change the code to this: > {{{color:#8eb021}if (func != null) func.call('test'){color}}} > then the class is compiled correctly -- This message was sent by Atlassian JIRA (v7.6.3#76005)