Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-6661

Support the concept of "traits"

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.0-beta-1
    • 2.3.0-beta-1
    • Compiler
    • None

    Description

      Traits...

      • are stateful components that can be mixed in classes
      • support composition and inheritance
      • are compatible with static type checking and static compilation
      • support dynamic approaches as well
      • can be mixed in at runtime
      • solve the usual diamond problem of inheritance
      • support specific overriding rules in case of method conflicts

      See here for detailed documentation for more information:
      http://beta.groovy-lang.org/docs/groovy-2.3.0-SNAPSHOT/html/documentation/core-traits.html

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            melix Cédric Champeau
            guillaume Guillaume Sauthier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment