[18] Copyright © 2000-2001 Profile Consulting Inc. [18]
<< Gruesome Example >>

Generating a sequence of patch instructions:
private
byte[] generatePatch(int loadReceiver, int captureOp) {
  return new byte[] {
    (byte) ( loadReceiver              ),
    (byte) ( iconst_0_03+captureOp     ),
    (byte) ( invokestatic_b8           ),
    (byte) ( constant_pool_count>>8    ),
    (byte) ( constant_pool_count&0xFF  ),
    0, 0, 0
  };
}