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-8539) Groovy fails to compile assignment operators on boolean array
Date Wed, 11 Apr 2018 06:15:00 GMT

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

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

GitHub user paulk-asert opened a pull request:

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

    GROOVY-8539: Groovy fails to compile assignment operators on boolean …

    …array

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/paulk-asert/groovy groovy8539

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/groovy/pull/683.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 #683
    
----
commit f8a0c55bb9bd69c298bcbcf763a43e6031e24b34
Author: Paul King <paulk@...>
Date:   2018-04-11T06:12:59Z

    GROOVY-8539: Groovy fails to compile assignment operators on boolean array

----


> 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
>            Priority: Major
>
> 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