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).
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.