JavaSnoop patch in order to support method reimplementation