Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.0.0-alpha-1, 2.5.0-beta-2, 2.4.13, 2.6.0-alpha-2
-
None
-
None
Description
Even when
@CompileStatic is present on the class, ShortTypeHandling.castToString() is applied to RHS of the expression when LHS is of type String.
I've attached a test class and the compilation result (compiled with groovyc 2.4.13. Versions 2.5.0-beta-2, 2.6.0-alpha-2, 3.0.0-alpha-1 yielded same results).