Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Example code which fails at runtime but should fail at compile time:
class Foo { def bar() {} } @groovy.transform.TypeChecked // MME at runtime, the same as dynamic groovy //@groovy.transform.CompileStatic // would give GroovyCastException at runtime def method() { Foo.bar() } method()
Attachments
Issue Links
- relates to
-
GROOVY-10939 Non-static method java.lang.Object#hashCode cannot be called from static context
- Closed
- links to