THRIFT-1254. javame: Code can't be compiled against a regular JRE: Object.clone(...
authorBryan Duxbury <bryanduxbury@apache.org>
Mon, 22 Aug 2011 16:59:20 +0000 (16:59 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Mon, 22 Aug 2011 16:59:20 +0000 (16:59 +0000)
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

compiler/cpp/src/generate/t_javame_generator.cc

index 6596ed5..00503e1 100644 (file)
@@ -1146,10 +1146,6 @@ void t_javame_generator::generate_java_struct_definition(ofstream &out,
   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);