27. Notwithstanding anything contained in any other law for the time being in force, no owner of any land or building shall be entitled to any compensation on acquisition of such land or building under any law for the time being in force, if he had contravened the provisions of section 23, section 24, section 25 or section 29, as the case may be.