eclipse-groovy compiler - IDE shows no error but compile fails
Answered
We are using eclipse-groovy compiler for a project which has both java and groovy.
The groovy class file containing below line is fine with no errors in IDE.
((configMap.get('key1') as Map<String, Object>).get('key2')) as List<Map<String, String>>
The groovy class is annotated with "CompileStatic"
But both build in IDE and maven build fails with error - Error:(233, -1) Groovy-Eclipse: Groovy:expecting '}', found 'for' @ line 233, column 9.
can you please help me understand why this syntax error not displayed in IDE?
Thanks in advance.
Please sign in to leave a comment.
Please share a sample project where the problem could be reproduced. You can share it privately via https://uploads.jetbrains.com
Thanks.