You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by br...@apache.org on 2011/08/22 18:59:20 UTC

svn commit: r1160333 - /thrift/trunk/compiler/cpp/src/generate/t_javame_generator.cc

Author: bryanduxbury
Date: Mon Aug 22 16:59:20 2011
New Revision: 1160333

URL: http://svn.apache.org/viewvc?rev=1160333&view=rev
Log:
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.

Modified:
    thrift/trunk/compiler/cpp/src/generate/t_javame_generator.cc

Modified: thrift/trunk/compiler/cpp/src/generate/t_javame_generator.cc
URL: http://svn.apache.org/viewvc/thrift/trunk/compiler/cpp/src/generate/t_javame_generator.cc?rev=1160333&r1=1160332&r2=1160333&view=diff
==============================================================================
--- thrift/trunk/compiler/cpp/src/generate/t_javame_generator.cc (original)
+++ thrift/trunk/compiler/cpp/src/generate/t_javame_generator.cc Mon Aug 22 16:59:20 2011
@@ -1146,10 +1146,6 @@ void t_javame_generator::generate_java_s
   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);