THRIFT-1254. javame: Code can't be compiled against a regular JRE: Object.clone() override has a different return type
This patch mirrors a previous commit to the main Java library by removing the clone() implementation altogether.
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1160333 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/generate/t_javame_generator.cc b/compiler/cpp/src/generate/t_javame_generator.cc
index 6596ed5..00503e1 100644
--- a/compiler/cpp/src/generate/t_javame_generator.cc
+++ b/compiler/cpp/src/generate/t_javame_generator.cc
@@ -1146,10 +1146,6 @@
indent(out) << " return new " << tstruct->get_name() << "(this);" << endl;
indent(out) << "}" << endl << endl;
- indent(out) << "public " << tstruct->get_name() << " clone() {" << endl;
- indent(out) << " return new " << tstruct->get_name() << "(this);" << endl;
- indent(out) << "}" << endl << endl;
-
generate_java_struct_clear(out, tstruct);
generate_java_bean_boilerplate(out, tstruct);