A method, apparatus, and computer instructions for referencing a constant
pool. A determination is made as to whether a bytecode references the
constant pool. A relative offset to the constant pool is identified for
the bytecode, in response to the bytecode referencing the constant pool.
The bytecode is then replaced with a new bytecode containing the relative
offset. The relative offset is used to reference the constant pool.