A federal bankruptcy judge rejected a compensation plan for six top executives of Dana Corp., in a test of a new bankruptcy law designed to prevent companies from paying big bonuses to keep senior managers on board while rank-and-file workers see their benefits or their jobs cut.

Judge Burton Lifland said in a ruling Tuesday that part of the proposed plan would violate a new bankruptcy law that allows retention bonuses only if the employee has a competing offer for equal or higher pay.