Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.x, 2.5.x
-
None
-
Any operating systems running Groovy 2.4.x or 2.5.x
Description
The following code snippet will throw java.lang.StackOverflowError:
import groovy.transform.CompileStatic import groovy.transform.TypeChecked @CompileStatic class Super { String toString() { 'Super' } } @TypeChecked @CompileStatic class Child extends Super { String toString() { 'Child extends ' + super.toString() } } // java.lang.StackOverflowError will happen println new Child().toString()
Attachments
Attachments
Issue Links
- relates to
-
GROOVY-9215 Incorrect compile time access error is raised when using @CompileStatic and/or @TypeChecked
- Closed