You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Dario Bertini (JIRA)" <ji...@apache.org> on 2016/05/26 20:28:13 UTC

[jira] [Commented] (GROOVY-7847) Set casting from CharSequence yields invalid Set

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

Dario Bertini commented on GROOVY-7847:
---------------------------------------

I just realized that what's returned by the cast is actually not even a Set

groovy:000> ('abcc' as Set).class
===> class String1_groovyProxy


> Set casting from CharSequence yields invalid Set
> ------------------------------------------------
>
>                 Key: GROOVY-7847
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7847
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Dario Bertini
>            Priority: Minor
>
> groovy:000> 'abcc'.toSet() == ('abcc' as Set)
> ===> false
> groovy:000> 'abcc' as Set
> ===> [a, b, c, c]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)