An Investigation into Misuse of Java Security APIs by Large Language Models