Jaycee Chan, the son of kung fu movie star Jackie Chan, was jailed for six months in China on Friday on a drugs charge. The younger Chan, a 32-year-old actor and singer, was formally charged last month with "the crime of sheltering others to take drugs" after testing positive for marijuana, with police saying they found 100 grams of the drug at his home. He faced a maximum prison sentence of three years. Chan is likely to be set free in over a month as the authorities would take into account the time he had spent in detention since last August, according to Si Weijiang, a lawyer. The court said Chan had "voluntarily pleaded guilty" to the prosecutors` allegations. "I have broken the law and should be punished," Chan said in his final statement to the court, according to the microblog. "When I return to society, I will not repeat this because I have let my family and friends down yet again." Last month, state media reported that Jackie Chan felt ashamed of his son's drug abuse and hopes that one day he will speak out about the dangers of taking drugs. The older Chan had served as a goodwill spokesman for the China National Anti-Drug Committee in 2009, promoting anti-drug education.