You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2015/10/11 21:38:05 UTC

[jira] [Resolved] (GROOVY-7603) Update groovy docs for Category

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

Pascal Schumacher resolved GROOVY-7603.
---------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.4.6

I removed the @Mixin example from the java doc of Category. Thanks for reporting!

> Update groovy docs for Category
> -------------------------------
>
>                 Key: GROOVY-7603
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7603
>             Project: Groovy
>          Issue Type: Documentation
>          Components: Documentation
>    Affects Versions: 2.4.5
>            Reporter: Aseem Bansal
>            Assignee: Pascal Schumacher
>            Priority: Minor
>             Fix For: 2.4.6
>
>
> Category docs refer to @Mixin but they are deprecated 
> http://docs.groovy-lang.org/latest/html/gapi/groovy/lang/Category.html
> I found that using traits is not possible. But it would be nice to be able to use them. 
> Tried a workaround but didn't work
> {noformat}
> trait Util {
>     Number getTwice() { this * 2 }
>     Number max(Number otherNumber) { Math.max(this, otherNumber) }
> }
> @groovy.lang.Category(Number)
> abstract class UtilCategory implements Util {
> }
> {noformat}



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