(Fox News) An Alabama high school teacher accused of having sex with two male students has had her criminal case tossed by a judge who ruled the state’s teacher-student sex law unconstitutional.

Decatur High School history teacher Carrie Witt, 44, was charged with having sex with a male student who was 17 when the relationship started, and another male student who was 18.

She convinced Circuit Court Judge Glen Thompson that in Alabama the age of consent is 16 and that police never had accused her of having used her position to coerce the students into having a sexual relationship.

Note: Read our discussion guidelines before commenting.