WASHINGTON - Congress stumbled badly the last time it rewrote military law amid a furor over sexual assaults.

Now, driven by fresh outrage over an Air Force case, some lawmakers seek new changes in the Uniform Code of Military Justice. Their effort is shadowed by lessons that might be learned, or lost, from past Capitol Hill mistakes.

In particular, new legislation prompted by an Air Force general's overturning of a sexual assault conviction reminds some of how Congress once rewrote the military code's sexual assault provisions, called Article 120. One military judge subsequently called the rewrite "almost incomprehensible," another termed it "arguably absurd" and other judges deemed the confusing result unconstitutional.

"The efforts to update Article 120 have certainly vexed military lawyers and judges and provide a useful lesson: Conduct serious public hearings … hold an open markup and above all don't try to rush," Eugene R. Fidell, who teaches military law at Yale Law School, said in an email interview.

Defense attorney Frank Spinner put it a little more bluntly: "The prior experiences with rewriting Article 120 suggest that Congress is using the military as an experiment in handling sexual assault cases."

Spinner represents Air Force Lt. Col. James Wilkerson, an F-16 pilot who was convicted last year of sexual assault at Aviano Air Base in Italy. In February, Wilkerson was freed from military prison in Charleston, S.C., and restored to active duty after Air Force Lt. Gen. Craig Franklin overturned the conviction.

Franklin's action was authorized by the Uniform Code. That power is long-standing but rarely exercised.

Still, the notoriety surrounding the Wilkerson case has spurred multiple legislative proposals, as well as general outrage. The alleged victim, physician assistant Kimberly Hanks, 49, went public and told NBC News she was "absolutely stunned" by Franklin's decision and that he was "protecting one of his own."

A new bill by Sen. Claire McCaskill, D-Mo., prohibits commanding officers from overturning convictions and requires written explanations if they commuted or lessened sentences. A comparable bill by Rep. Jackie Speier, D-Calif., would prohibit commanding officers from overturning convictions or changing sentences.

Vice Adm. Nanette DeRenzi, the Navy's judge advocate general, told a Senate subcommittee Wednesday that it was a good time to reconsider the powers granted commanding officers in light of modern developments, even as she cautioned lawmakers to be "ever mindful of the second- or third-order effects" of any potential changes.

Exhibit A: What happened when Congress last adjusted the Uniform Code of Military Justice over sexual assault issues?

Prompted by reports of sexual assaults in Iraq in 2004, Congress directed the Pentagon to review Article 120 sexual assault provisions. The Pentagon task force didn't recommend any changes. But Congress rewrote the law anyway. The changes, Rep. Loretta Sanchez, D-Calif., said at the time, would be a major step in convicting rapists. Instead, they caused legal chaos.

Under the old military code, prosecutors had to prove that the victim hadn't consented. The rewrite removed that provision.

The accused could still claim as a defense that the victim had consented, through a preponderance of evidence. Prosecutors then could defeat this defense if they could show beyond a reasonable doubt that the victim hadn't consented.

This posed several problems. If the defense has enough evidence to show consent, then by definition it's raised a reasonable doubt about what happened. One military appeals court called this conundrum a "legal impossibility." Moreover, though the Constitution puts the burden of proof on the government in a criminal case, the rewrite seemed to shift this burden unfairly to the defense.

"If you had 100 monkeys with a typewriter, they'd probably come up with something like this," Air Force Col. Don Christensen, a trial judge at the time, concluded during a 2009 aggravated sex assault case.

Congress quietly rewrote the Article 120 language again in 2011.