Fix generation of Java literals.