You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "OC (Jira)" <ji...@apache.org> on 2025/02/03 19:20:00 UTC

[jira] [Created] (GROOVY-11565) empty if/else seems to confuse the parser

OC created GROOVY-11565:
---------------------------

             Summary: empty if/else seems to confuse the parser
                 Key: GROOVY-11565
                 URL: https://issues.apache.org/jira/browse/GROOVY-11565
             Project: Groovy
          Issue Type: Bug
          Components: parser
    Affects Versions: 4.0.25
            Reporter: OC


{{1209 ocs /tmp> <q.groovy }}
{{if (foo) ;}}
{{else ;}}
{{1210 ocs /tmp> /usr/local/groovy-4.0.25/bin/groovy q}}
{{Caught: BUG! exception in phase 'conversion' in source unit '/private/tmp/q.groovy' null}}
{{BUG! exception in phase 'conversion' in source unit '/private/tmp/q.groovy' null}}
{{Caused by: java.lang.NullPointerException}}
{{1211 ocs /tmp> }}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)