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

Problem with Java Stubs Related to a Trait with Property

    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

        1. traitinheritance GROOVY-7536.zip
          64 kB
          Wisen Tanasa

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: