of the Straits Settlements in 1867, the function of legal adviser to the government in Singapore was vested in various offices. From 1826 to 1855, it was the Recorder of the Prince of Wales Island, Malacca and Singapore; from 1855 to 1864, the Recorder of Singapore; and from 1864 to 1867, the Crown Counsel, Singapore. 1867–1942: Attorney-General of the Straits Settlements The office of Attorney-General was created on 1 April 1867, when Sir Thomas Braddell was appointed as the first attorney-general of the Straits Settlements. He was based in Singapore while his solicitor-general, Daniel Logan, was based in Penang. 1942–1945: Japanese occupation of Singapore Following the fall of Singapore on 15 February 1942, Japanese troops arrested the attorney-general, Charles Gough Howell, , who died in Japanese captivity. Concurrently, the civilian courts ceased to function. Subsequently, the Japanese military administration established the office of Kensatsu-kan, or Attorney-General and Public Prosecutor, presumably on 27 May 1942 when the civilian courts were re-opened by proclamation. 1945–1946: British Military Administration Following the formal surrender of Japanese forces in Southeast Asia on 12 September 1945, the responsibility of rendering legal advice to the British Military Administration of Malaya lay with its Chief Legal Officer. 1946–1959: Attorney-General of the Colony of Singapore When Singapore became a Crown colony on 1 April 1946, Sir Edward John Davies, was appointed as the first attorney-general of the Colony of Singapore. 1959–1965: State Advocate-General of the State of Singapore After the State of Singapore gained full internal self-governance in 1959, Ahmad Mohamed Ibrahim was appointed State Advocate-General, becoming Singapore's first non-British legal adviser to the government. Post-1965: Attorney-General of the Republic of Singapore Following the Republic of Singapore's independence on 9 August 1965, Ahmad Mohamed Ibrahim became the country's first attorney-general. The appointment of Lucien Wong, , as the ninth attorney-general, was debated in Parliament. He was aged 63 at the time of his appointment; the retirement age is 60 and he was older than the previous Attorney-General who retired at age 60. Minister for Law K. Shanmugam, who was a senior partner with Wong at Allen & Gledhill, argued that his appointment, being for a specified term, was “in accordance with Article 35 of the Constitution.” Wong was previously the personal lawyer of Prime Minister Lee Hsien Loong and also advised Lee on issues relating to Lee Kuan Yew's will. List of officeholders (1867–1965) Attorney-General of the Straits Settlements