RHS struct code generation for java-experimental