fix so java code also gets generated