By MARK SHERMAN, Associated Press

WASHINGTON (AP) — The Supreme Court won't duck the issue of same-sex marriage the next time a case comes to the court, Justice Ruth Bader Ginsburg says.

The 81-year-old Ginsburg said in an interview with The Associated Press on Thursday that she expects a same-sex marriage case to be heard and decided by June 2016, and possibly a year earlier.

Attitudes have changed swiftly in favor of same-sex marriage, which is now legal in 19 states and the District of Columbia, Ginsburg said in her wood-paneled office on the court's main floor.

She predicted that the justices would not delay ruling as they did on interracial marriage bans, which were not formally struck down until 1967.

"I think the court will not do what they did in the old days when they continually ducked the issue of miscegenation," Ginsburg said. "If a case is properly before the court, they will take it."

The comment marked something of a change for Ginsburg, who previously had been seen as wary about the court getting too far ahead of the country in ruling on major social issues.

The justices decided two same-sex marriage cases in June 2013. Ginsburg was in the majority to strike down part of the anti-gay marriage Defense of Marriage Act. She also was part of a court majority that declined to rule on the merits of California's Proposition 8 that defined marriage as between a man and a woman. The effect of the decision was to allow same-sex unions to resume in California, but the high court said nothing about the right to marry.

Appeals courts in Denver and Richmond, Virginia, have upheld lower court rulings striking down state constitutional bans on same-sex marriage. Any of those cases could make their way to the Supreme Court in the coming months.

Ginsburg also addressed two cases decided by the court in June that affect the rights of women. In one, she defended the court's ruling that struck down the 35-foot, protest-free zone on sidewalks outside Massachusetts abortions clinics.

"It was not a compromise decision but a good decision to say yes, you can regulate, but it is speech so you have to be careful not to go too far," Ginsburg said. While all the justices said the 35-foot buffer zone violated the Constitution, Ginsburg joined Chief Justice John Roberts and the court's other liberal justices to strike down the buffer zone on narrower grounds than the other, more conservative justices wanted.

In the other case, Ginsburg and her liberal colleagues dissented from a decision that allows for-profit corporations, such as the Hobby Lobby chain of crafts stores, to assert religious objections to paying for contraceptives for women, as required under President Barack Obama's health care law.

Joining Ginsburg in dissent were the other two women on the court, Justices Sonia Sotomayor and Elena Kagan, and Justice Stephen Breyer.

"I have no doubt that if the court had been composed of nine women the result would have been different in Hobby Lobby," Ginsburg said.

She said, though, that she hasn't lost hope for the five men on the court who formed the majority in favor of Hobby Lobby. "As long as one lives, one can learn," she said.

Ginsburg has served on the court since 1993. She was nominated by President Bill Clinton. She said feels she can still do the job well and rebuffed suggestions that she should retire now so President Barack Obama can appoint a like-minded successor.

"Right now, I don't see any sign that I'm less able to do the job," she said.

She directed a feisty response to law professors Randall Kennedy of Harvard Law School and Erwin Chemerinsky, dean of the law school at the University of California at Irvine, who have called on her to step down now.

"So who do you think could be nominated now that would get through the Senate that you would rather see on the court than me?" she said.

___

Associated Press writer Sam Hananel contributed to this report.