I do not understand your question, exactly, but here goes: He was captured on June 27th 1862, and exchanged in August. He was probably killed by "friendly fire". He died on July 1st, 1863.
To practice their religion without persecution
The correct answer is: "he law would apply to ethnic Chinese regardless of which Asian country they originated from".
The Chinese Exclusion Act was a US federal law enacted by the US goverment presided Chester A. Arthur in 1882. It prohibited Chinese women from migrating to the US, with the ultimate aim of preventing all members from a certain ethinical group or community from establishing themselves in the US.
The amendments introduced in 1884 tightened the previously accepted provisions that enabled former immigrants to leave and then return. After the amendments, they had to meet more strict requirements in order to do so. It also clarified that <u>these rulings were applicable to ethnic Chinese people regardless of which country they were coming from. </u>