Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.4.4
-
None
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
Attachments
Issue Links
- duplicates
-
GROOVY-8224 Stubs for classes implementing traits with fields don't include getters/setters
- Closed