The following code (using Jackson API)
TypeReference<Map<String, String>> mapTypeReference = new TypeReference<Map<String, String>>() {};
fails to compile with @CompileStatic with
[Static type checking] - Cannot use diamond <> with anonymous inner classes
Even though it is valid Java code and should work in Groovy.