[ https://issues.apache.org/jira/browse/THRIFT-1254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13088825#comment-13088825 ]
Hudson commented on THRIFT-1254: -------------------------------- Integrated in Thrift #227 (See [https://builds.apache.org/job/Thrift/227/]) 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. bryanduxbury : http://svn.apache.org/viewvc/?view=rev&rev=1160333 Files : * /thrift/trunk/compiler/cpp/src/generate/t_javame_generator.cc > Code can't be compiled against a regular JRE: Object.clone() override has a > different return type > ------------------------------------------------------------------------------------------------- > > Key: THRIFT-1254 > URL: https://issues.apache.org/jira/browse/THRIFT-1254 > Project: Thrift > Issue Type: Bug > Components: JavaME - Compiler > Affects Versions: 0.6.1 > Reporter: Raphaƫl Bartement > Assignee: Bryan Duxbury > Priority: Minor > Fix For: 0.8 > > Attachments: Patch.patch, thrift-1254.patch > > > Code generator produces 2 methods to clone objects: "clone" and "deepCopy", > with the exact same implementation. > The "clone()" methods is conflicting with the regular Object.clone() method > of the standard Java platform. Its return type is different (type of the > object, instead of just Object). > (http://download.oracle.com/javase/1.4.2/docs/api/java/lang/Object.html#clone()) > This prevent the code from being compiled by the regular java compiler. > This is not it's finality, but it is really useful to produce intermediate > libraries as JAR files. > Using only RAPC (BlackBerry's JDE compiler), we would have to include source > code directly. > Attached patch preserves the strongly typed signature of deepCopy(), but turn > back clone()'s return type to Object. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira