NASHVILLE, Tenn. (AP) — Three convicted sex offenders have filed a lawsuit challenging Tennessee legislation that would make it a felony for them to live with their children.

The Tennessean reports Judge William Campbell Jr. granted a temporary restraining order Friday. A hearing on the request for an injunction is July 11. The legislation is set to become law July 1.

Under the law, convicted sex offenders could be subject to arrest if they're alone with, spend the night with, or live with their own child.

The lawsuit refers to the plaintiffs as John Doe 1 through 3. Each has completed punishment and treatment following crimes involving victims under 12.

Gov. Bill Lee is named as a defendant. His spokeswoman, Laine Arnold, says the administration supports efforts to protect children from sexual abuse.

___

Information from: The Tennessean, http://www.tennessean.com