argsListBuilder.append(cppField.getDefaultInitialization());
argsListBuilder.append(", ");
}
}
argsListBuilder.append(JniUtils.generateClassNameVariableName(returnCppBean, null));
<BUG>argsListBuilder.append(", jniEnv");
String initialization = String.format("\t%s *%s = new %s(%s);\n",
returnCppBean.getCppClassName(), returnTypeVariableName,
returnCppBean.getCppClassName(), argsListBuilder.toString());</BUG>
String returnStatement = String.format("\treturn %s;\n", returnTypeVariableName);

argsListBuilder.append(cppField.getDefaultInitialization());
argsListBuilder.append(", ");
}
}
argsListBuilder.append(JniUtils.generateClassNameVariableName(returnCppBean, null));
argsListBuilder.append(", jniEnv");
String retType = JniUtils.wrapInSharedPtr(returnCppBean.getCppClassName(), PASS_BY_VALUE);
String initializationExpression = JniUtils.makeShared(returnCppBean.getCppClassName(), argsListBuilder.toString());
String initialization = String.format("\t%s %s = %s;\n",
retType, returnTypeVariableName, initializationExpression);
String returnStatement = String.format("\treturn %s;\n", returnTypeVariableName);
