"They are having a party of their own, they don't disturb the public," Mr Harsono said.

"The law is a very bad, the law is discriminating. Of course they haven't committed a crime because sexual acts are a private matter, as long as there is no coercion or violence and it's based on consent."

At least three of the men are believed to be foreigners from Singapore, Malaysia and Britain.

Homosexuality is not illegal in Indonesia, except for in Aceh.

Mr Harsono said there has been a rise in anti LGBT sentiment in Indonesia over the past two years led by the rise of Islamic fundamentalism.

"There are more and more discriminatory regulations and at the same time we are also seeing the rise of Islamic organisations," he said.

Under Indonesian law the men can be detained for up to 72 hours.

It is unclear how many, if any, have been released since the Sunday evening arrest.