Groovy and Java, the runtime bug Krisztian Horvath 13 July 2014

I can barely count how many languages we use at SequenceIQ [based on our GitHub repository it’s Java, Scala, Groovy, Go, CoffeeScript, JavaScript, R and Shell (Ansible, Dockerfile, AWS CLI, what not)]. Groovy is one of them. Coding in Groovy is fast and fun, isn’t it? Except when problems come up at runtime. This is one of those.

The Ambari REST Client is written in Groovy and in this case used by a Java application. You can find the sample bug in our repository. The same thing could have been achieved with reflection as well. Do you know why this can happen? It’s a good candidate for an interview question, isn’t it …

Comments

Recent Posts