groovy/groovy-core — pull request #16 by jwagenleitner (2012-01-19 02:50:47+00:00)
Title: GROOVY-5163: IncompatibleClassChangeError when running groovysh

I believe this is related to GROOVY-4838. JDK7 added an additional protected constructor to the `Exception` class. By converting the `CommandException` class to a java class the compile vs runtime mismatch can be avoided.

I tested by compiling master with jdk6 and jdk7 and then running groovysh with both versions to verify the `IncompatibleClassChangeError` was no longer produced.