Monday, 11 May 2015

Groovy Eclipse compiler versions and ShortTypeHandling

Just a short note to remind myself.

If you come across a classNotFoundException: org.codehaus.groovy.runtime.typehandling.ShortTypeHandling

Then the chances are you have 2 versions of Groovy being used.
1 pre Groovy 2.3.5, and 1 after it.

Reminder: use this to investigate (remember to look at parents too)
mvn dependency:tree -Dverbose

I believe this is a Java 8 compatibility change, but would need to investigate to be sure.

Anyway, go here to find out more:
http://glaforge.appspot.com/article/groovy-2-3-5-out-with-upward-compatibility 


2 comments:

  1. Interesting post. Version compatibility between tools like Groovy and Eclipse can sometimes be tricky, so explanations like this are really helpful for developers trying to avoid compiler conflicts. Continuous learning is important in tech too—many people also explore practical skills through programs like Data Science, Full Stack Development, or Digital Marketing.

    ReplyDelete