Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3.8
-
None
Description
grv $ groovy -version Groovy Version: 2.3.8 JVM: 1.7.0_45 Vendor: Oracle Corporation OS: Mac OS X grv $ grv $ cat SomeTrait.groovy @groovy.transform.CompileStatic trait SomeTrait { static someStaticMethod(){} void someInstanceMethod() { someStaticMethod() } } grv $ grv $ groovyc SomeTrait.groovy org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: SomeTrait.groovy: 6: [Static type checking] - Cannot find matching method SomeTrait#someStaticMethod(). Please check if the declared type is right and if the method exists. @ line 6, column 9. someStaticMethod() ^ 1 error
Attachments
Issue Links
- is related to
-
GROOVY-7255 Problem With @CompileStatic And Static Trait Members
- Closed
- relates to
-
GROOVY-8854 MissingMethodException when a public method on a trait calls a static private one in a class hierarchy
- Closed
-
GROOVY-7214 Problem With Private Methods In A Trait
- Closed
-
GROOVY-7322 Problem With Static Trait Methods
- Closed