groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul King (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (GROOVY-8539) Groovy fails to compile assignment operators on boolean array
Date Thu, 13 Dec 2018 10:03:00 GMT

     [ https://issues.apache.org/jira/browse/GROOVY-8539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Paul King closed GROOVY-8539.
-----------------------------

> Groovy fails to compile assignment operators on boolean array
> -------------------------------------------------------------
>
>                 Key: GROOVY-8539
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8539
>             Project: Groovy
>          Issue Type: Bug
>          Components: class generator
>    Affects Versions: 3.0.0-alpha-1, 2.4.15
>            Reporter: Tony Yoshicedo
>            Assignee: Paul King
>            Priority: Major
>             Fix For: 2.4.16
>
>
> Groovy fails to compile:
> boolean[] b = [true]; b[0] &= false;
> with an error:
> Caught: BUG! exception in phase 'class generation' in source unit 'script_from_command_line'
should not reach here
> BUG! exception in phase 'class generation' in source unit 'script_from_command_line'
should not reach here
> when running:
> groovy -e "boolean[] b = [true]; b[0] &= false;"
> Alternative formats work fine, such as:
> groovy -e "boolean[] b = [true]; b[0] = false && b[0];"
> Similarly affects |= and ^= operators.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message