fluflu icon indicating copy to clipboard operation
fluflu copied to clipboard

Make it possible to define a cloner method

Open verhas opened this issue 12 years ago • 0 comments

Instead of generating code that relies on the Java clone capability let the programmer create a method in the annotated class that makes the cloning class specific and annotate the method so that the generated methods call that method to get a new instance of the class instead of cloning.

The method annotated using the annotation

@Cloner

should return the base class.

verhas avatar May 10 '13 10:05 verhas