Alternative implementation of bytecode compatibility check