The New Jersey Supreme Court heard arguments Monday on whether a law requiring palimony agreements to be in writing bars enforcement of oral agreements that preceded the law’s adoption.

An appeals court has said that it does, but a lawyer challenging the decision told the justices that the Legislature could not, by passing the 2010 amendments to the Statute of Frauds, interfere with contracts already in effect.