Buggy code:
public class BeaconLightHouse { private static Class [ ] _paramTypes ; private static IndexedFunctionTable _ports ; private static void doStaticInit ( ) { } private static void setup ( ) { } public static void guideShipToPort ( GalleonBarge barge , OrderSlip order ) { } private static void validateIncommingShip ( GalleonBarge barge , OrderSlip order ) { } private static void validateCollectedMerchandise ( GalleonBarge barge , OrderSlip order ) { } private static void loadBargeUsingTable ( GalleonBarge barge , OrderSlip order ) { } private static void loadBargeUsingPort ( GalleonBarge barge , OrderSlip order ) { MasterPortList . validatePortID ( order . portID ) ; Method m = BeaconLightHouse . _ports . getMethodByIndex ( order . portID , BeaconLightHouse . _paramTypes ) ; boolean isStatic = BeaconLightHouse . _ports . getIsMethodStaticByIndex ( order . portID , BeaconLightHouse . _paramTypes ) ; if ( null == ( BeaconLightHouse . _paramTypes ) ) { BeaconLightHouse . doError ( "[params<seq2seq4repair_space>null]" ) ; } if ( ( BeaconLightHouse . _paramTypes . length ) != 2 ) { BeaconLightHouse . doError ( "[param<seq2seq4repair_space>len]" ) ; } if ( ( BeaconLightHouse . _paramTypes [ 0 ] ) != ( GalleonBarge . class ) ) { BeaconLightHouse . doError ( "[wrong<seq2seq4repair_space>1st<seq2seq4repair_space>param]" ) ; } if ( ( BeaconLightHouse . _paramTypes [ 1 ] ) != ( OrderSlip . class ) ) { BeaconLightHouse . doError ( "[wrong<seq2seq4repair_space>2nd<seq2seq4repair_space>param]" ) ; } if ( ( null == barge ) || ( null == order ) ) { BeaconLightHouse . doError ( "needed<seq2seq4repair_space>input<seq2seq4repair_space>is<seq2seq4repair_space>null" ) ; } String msg = "" ; try { if ( isStatic ) { m . invoke ( null , ( ( Object ) ( BeaconLightHouse . _paramTypes ) ) ) ; } else { BeaconLightHouse . doError ( "[Not<seq2seq4repair_space>designed<seq2seq4repair_space>to<seq2seq4repair_space>handle<seq2seq4repair_space>non-static<seq2seq4repair_space>methods.]" ) ; } } catch ( InvocationTargetException ite ) { msg += "[InvocationTargetException:]" ; msg += ite . getMessage ( ) ; msg += "[End<seq2seq4repair_space>of<seq2seq4repair_space>invocationTargetException<seq2seq4repair_space>details]" ; } catch ( Exception exep ) { msg += "[Exception<seq2seq4repair_space>was<seq2seq4repair_space>NOT<seq2seq4repair_space>type<seq2seq4repair_space>InvocationTargetException]" ; } finally { String mName = m . toGenericString ( ) ; <START_BUG> msg = "[Failed<seq2seq4repair_space>to<seq2seq4repair_space>invoke<seq2seq4repair_space>method!]" ; <END_BUG> if ( false == isStatic ) { msg += "[NOT<seq2seq4repair_space>DESIGNED<seq2seq4repair_space>TO<seq2seq4repair_space>HANDLE<seq2seq4repair_space>NON-STATIC<seq2seq4repair_space>METHODS!]" ; } msg += "[METHOD<seq2seq4repair_space>INFO::<seq2seq4repair_space>START]" ; msg += mName ; msg += "[METHOD<seq2seq4repair_space>INFO::<seq2seq4repair_space>END]" ; BeaconLightHouse . doError ( msg ) ; } } private static void validateKeyLoadingConfigOnOrder ( OrderSlip order ) { } private static void doError ( String msg ) { } }

Fix:
msg += "[Failed<seq2seq4repair_space>to<seq2seq4repair_space>invoke<seq2seq4repair_space>method!]" ;