Buggy code:
public class StandardCoercionManagerTest extends TestClass { public void testCoercionFromObjectToStringIsNotImplicit ( ) { } public void testCoercionFromPrimitiveIntToComparableDoesNotHaveWarning ( ) { } public void testMetaIntrinsicTypeCoercesToClass ( ) { } public void testNonJavaTypesCoercableToObject ( ) { } public void testStringCoercionWorksCorrectly ( ) { } public void testStringCoercionWorksCorrectly2 ( ) { } public void testStringCoercionWorksCorrectly3 ( ) { } @ SuppressWarnings ( { "BooleanConstructorCall" , "UnnecessaryBoxing" } ) public void testBooleanPrimitivesConvertCorrectly ( ) { } @ SuppressWarnings ( { "UnnecessaryBoxing" } ) public void testBytePrimitivesConvertCorrectly ( ) { } @ SuppressWarnings ( { "UnnecessaryBoxing" } ) public void testCharacterPrimitivesConvertCorrectly ( ) { } @ SuppressWarnings ( { "UnnecessaryBoxing" } ) public void testDoublePrimitivesConvertCorrectly ( ) { } @ SuppressWarnings ( { "UnnecessaryBoxing" } ) public void testDoubleCoercesFromInt ( ) { } @ SuppressWarnings ( { "UnnecessaryBoxing" } ) public void testFloatPrimitivesConvertCorrectly ( ) { } @ SuppressWarnings ( { "UnnecessaryBoxing" } ) public void testIntegerPrimitivesConvertCorrectly ( ) { } @ SuppressWarnings ( { "UnnecessaryBoxing" } ) public void testLongPrimitivesConvertCorrectly ( ) { } @ SuppressWarnings ( { "UnnecessaryBoxing" } ) public void testShortPrimitivesConvertCorrectly ( ) { } public void testBigDecimalConvertsToPrimitiveNumerics ( ) { } public void testPrimitiveNumericsToBigDecimal ( ) { } public void testBigIntegerConvertsToPrimitiveNumerics ( ) { } public void testPrimitiveNumericsToBigInteger ( ) { } @ SuppressWarnings ( { "UnnecessaryBoxing" } ) public void testNumericToVariousImpls ( ) { } public void testCoerceArrayToIncompatiblyTypedCollectionsFails ( ) { } public void testClassCoercionFromJavaMetaWorksCorrectly ( ) { } public void testClassCoercionFromNonJavaMetaFails ( ) { } public void testJavaIntrinsicTypeCoercionFromJavaMetaWorksCorrectly ( ) { } public void testJavaArrayToGosuArrayThrowsRuntimeExceptionIfCoercionNotPossible ( ) { } public void testJavaIntrinsicTypeCoercionFromNonJavaMetaFails ( ) { } public void testEqualitySymettric ( ) { } private static boolean testBool = false ; public static void setTestBoolean ( boolean b ) { } public static interface ParamInterface < T > { public T get ( ) { } } public static interface MultiMethodInterface { public Object get ( ) { } public void set ( ) { } } public void testBlockCoercesToSimpleInterface ( ) { } public void testInterfaceCoercesToSimpleBlock ( ) { } public void testGosuInterfaceCoercesToSimpleBlock ( ) { } public void testBlockDoesNotCoerceToSimpleInterfaceThatItDoesNotMatch ( ) { } public void testBlockDoesNotCoerceToMultiMethodInterface ( ) { } public void testBlockCoercesToParameterizedInterface ( ) { } public void testBlockCoercesToParameterizedInterface2 ( ) { } public void testSimpleInterfaceDoesNotCoerceToIncompatibleBlockReturnType ( ) { } public void testSimpleInterfaceDoesNotCoerceToIncompatibleBlockParamType ( ) { } public void testComparatorCanProperlyBeInferred ( ) throws ParseResultsException { } public void testParameterizedInterfaceDoesNotCoerceToIncompatibleBlock ( ) { } public void testFeatureLiteralCoercesToCompatibleBlock ( ) throws ParseResultsException { } public void testFeatureLiteralDoesNotCoerceToIncompatibleBlock ( ) { } public void testMultiMethodInterfaceDoesNotCoerceToBlock ( ) { } public void testGosuClassContextIsRestoredInBlockCoercedToInterface ( ) { } public void testMetaTypeCoercedToTypeTypeStatically ( ) { } public void testMetaTypeCoercedToTypeTypeDynamically ( ) { } public void testMetaTypeNotCoercedToWrongTypeTypeStatically ( ) throws ParseResultsException { try { GosuTestUtil . evalGosu ( "var<seq2seq4repair_space>x<seq2seq4repair_space>=<seq2seq4repair_space>String<seq2seq4repair_space>as<seq2seq4repair_space>gw.internal.gosu.parser.GosuClass" ) ; Assert . fail ( "Should<seq2seq4repair_space>not<seq2seq4repair_space>have<seq2seq4repair_space>been<seq2seq4repair_space>able<seq2seq4repair_space>to<seq2seq4repair_space>coerce<seq2seq4repair_space>Type<String><seq2seq4repair_space>to<seq2seq4repair_space>GosuClass" ) ; <START_BUG> } catch ( ClassCastException e ) { <END_BUG> } } public void testMetaTypeNotCoercedToWrongTypeTypeDynamically ( ) { } private Object eval ( String s ) { } private void assertDoesNotCompile ( String script ) { } public static class ToStringTest { public String toString ( ) { } } public static class ToDateStringTest { public String toString ( ) { } } }

Fix:
} catch ( ParseResultsException e ) {