SACRAMENTO, Calif. — Gov. Jerry Brown has signed legislation that reduces the penalty for intentionally exposing some to HIV in California.

The legislation signed Friday is part of an attempt by Democratic lawmakers to reverse the tough policies enacted during the AIDS scare of the 1980s and '90s.

Under those policies, intentionally exposing someone to HIV was a felony. SB239 reduces the crime to a misdemeanor, treating HIV like other communicable diseases.

Get Breaking News Delivered to Your Inbox

Democratic Sen. Scott Wiener of San Francisco says the harsher penalties discouraged people from getting tested for HIV and stigmatized those who have it.

Critics say the bill would endanger people.

Lawmakers last year approved legislation allowing people with HIV to receive transplants from HIV-positive donors, reversing a ban imposed amid widespread fear about the disease.

The bill was among several pieces of legislation Gov. Brown signed into law on Friday. Brown also vetoed several bills, including ones on cannabis edibles and a smoking ban on state beaches and parks, CBS Sacramento reports.