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

Problem with Java Stubs Related to a Trait with Property

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

Details

    Description

      Similar with GROOVY-7113 but the Trait contains property. Attached is the zip with modified source.

      src/main/groovy/demo/DemoTrait.groovy
      package demo
      
      trait DemoTrait {
      
          int myproperty
      
          int getMagicNumber() {
              42
          }
      }
      

      Error message

      /Users/ceilfors/Downloads/traitinheritance/build/tmp/groovy-java-stubs/demo/DemoClass.java:10: error: DemoClass is not abstract and does not override abstract method setMyproperty(int) in DemoTrait
      public class DemoClass
             ^
      1 error
      startup failed:
      Compilation failed; see the compiler error output for details.
      
      1 error
      

      Attachments

        Issue Links

        Activity

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

          People

            paulk Paul King
            ceilfors Wisen Tanasa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment