/** * Checks whether ver is binary compatible with the current version. The rule for binary compatibility is that * the major and minor versions have to match, whereas micro versions can differ. * @param ver * @return */ public static boolean isBinaryCompatible(short ver) { if(ver == version) return true; short[] tmp=decode(ver); short tmp_major=tmp[0], tmp_minor=tmp[1]; return major == tmp_major && minor == tmp_minor; }