Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to define a cloner method #13

Open
verhas opened this issue May 10, 2013 · 0 comments
Open

Make it possible to define a cloner method #13

verhas opened this issue May 10, 2013 · 0 comments

Comments

@verhas
Copy link
Owner

verhas commented May 10, 2013

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 added a commit that referenced this issue May 11, 2013
making.

Introducing @cloner and also implementing it in fluent class generation.

GitHub issue #13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant