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

Generate java from metadata #4

Open
alechenninger opened this issue Dec 13, 2015 · 2 comments
Open

Generate java from metadata #4

alechenninger opened this issue Dec 13, 2015 · 2 comments

Comments

@alechenninger
Copy link
Collaborator

This is a little harder, but not much, thanks to: https://github.com/square/javapoet

@alechenninger
Copy link
Collaborator Author

From README...

This is lowest priority since java to metadata is lossy therefore going the other direction will require a small amount of "magic" to compute that missing information. For this reason I think it's better to simply use Java classes as the starting point / source of truth since they're much easier to write, usable in other code, and retain more information.

@alechenninger
Copy link
Collaborator Author

Another reason I found not to go this direction is correctness: it is much more difficult to have bugs in your metadata when your source of truth is strongly typed and statically analyzable.

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

No branches or pull requests

1 participant