Buggy code:
@ RunWith ( Parameterized . class ) public class FastMathStrictComparisonTest { private static final Double [ ] DOUBLE_SPECIAL_VALUES = new Double [ ] { - 0.0 , + 0.0 , Double . NaN , Double . NEGATIVE_INFINITY , Double . POSITIVE_INFINITY , - ( Double . MAX_VALUE ) , Double . MAX_VALUE , - ( MathUtils . EPSILON ) , MathUtils . EPSILON , - ( MathUtils . SAFE_MIN ) , MathUtils . SAFE_MIN , - ( Double . MIN_VALUE ) , Double . MIN_VALUE } ; private static final Float [ ] FLOAT_SPECIAL_VALUES = new Float [ ] { - 0.0F , + 0.0F , Float . NaN , Float . NEGATIVE_INFINITY , Float . POSITIVE_INFINITY , Float . MIN_VALUE , Float . MAX_VALUE , - ( Float . MIN_VALUE ) , - ( Float . MAX_VALUE ) } ; private static final Object [ ] LONG_SPECIAL_VALUES = new Object [ ] { - 1 , 0 , 1 , Long . MIN_VALUE , Long . MAX_VALUE } ; private static final Object [ ] INT_SPECIAL_VALUES = new Object [ ] { - 1 , 0 , 1 , Integer . MIN_VALUE , Integer . MAX_VALUE } ; private final Method mathMethod ; private final Method fastMethod ; private final Type [ ] types ; private final Object [ ] [ ] valueArrays ; public FastMathStrictComparisonTest ( Method m , Method f , Type [ ] types , Object [ ] [ ] data ) throws Exception { } @ Test public void test1 ( ) throws Exception { } private static boolean isNumber ( Double d ) { } private static boolean isNumber ( Float f ) { } private static void reportFailedResults ( Method mathMethod , Object [ ] params , Object expected , Object actual , int [ ] entries ) { final String methodName = mathMethod . getName ( ) ; String format = null ; long actL = 0 ; long expL = 0 ; if ( expected instanceof Double ) { Double exp = ( ( Double ) ( expected ) ) ; Double act = ( ( Double ) ( actual ) ) ; if ( ( ( FastMathStrictComparisonTest . isNumber ( exp ) ) && ( FastMathStrictComparisonTest . isNumber ( act ) ) ) && ( exp != 0 ) ) { actL = Double . doubleToLongBits ( act ) ; expL = Double . doubleToLongBits ( exp ) ; if ( ( Math . abs ( ( actL - expL ) ) ) == 1 ) { if ( ( methodName . equals ( "toRadians" ) ) || ( methodName . equals ( "atan2" ) ) ) { return ; } } format = "%016x" ; } } else if ( expected instanceof Float ) { Float exp = ( ( Float ) ( expected ) ) ; Float act = ( ( Float ) ( actual ) ) ; if ( ( ( FastMathStrictComparisonTest . isNumber ( exp ) ) && ( FastMathStrictComparisonTest . isNumber ( act ) ) ) && ( exp != 0 ) ) { actL = Float . floatToIntBits ( act ) ; expL = Float . floatToIntBits ( exp ) ; format = "%08x" ; } } StringBuilder sb = new StringBuilder ( ) ; sb . append ( mathMethod . getReturnType ( ) . getSimpleName ( ) ) ; sb . append ( "<seq2seq4repair_space>" ) ; sb . append ( methodName ) ; sb . append ( "(" ) ; String sep = "" ; for ( Object o : params ) { sb . append ( sep ) ; sb . append ( o ) ; sep = ",<seq2seq4repair_space>" ; } sb . append ( ")<seq2seq4repair_space>expected<seq2seq4repair_space>" ) ; if ( format != null ) { sb . append ( String . format ( format , expL ) ) ; } else { sb . append ( expected ) ; } sb . append ( "<seq2seq4repair_space>actual<seq2seq4repair_space>" ) ; if ( format != null ) { sb . append ( String . format ( format , actL ) ) ; } else { sb . append ( actual ) ; } sb . append ( "<seq2seq4repair_space>entries<seq2seq4repair_space>" ) ; sb . append ( Arrays . toString ( entries ) ) ; String message = sb . toString ( ) ; <START_BUG> final boolean fatal = false ; <END_BUG> if ( fatal ) { Assert . fail ( message ) ; } else { System . out . println ( message ) ; } } private static void callMethods ( Method mathMethod , Method fastMethod , Object [ ] params , int [ ] entries ) throws IllegalAccessException , InvocationTargetException { } private static void setupMethodCall ( Method mathMethod , Method fastMethod , Type [ ] types , Object [ ] [ ] valueArrays ) throws Exception { } @ Parameters public static List < Object [ ] > data ( ) throws Exception { } }

Fix:
final boolean fatal = true ;