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

[REQ][Java/Scala] Migrate away from outdated joda library by default #5401

Open
chameleon82 opened this issue Feb 22, 2020 · 0 comments
Open

Comments

@chameleon82
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Since java 8 released joda recommend to use java.time library instead (see official note https://www.joda.org/joda-time/)

For now on different java based generators we have at least 3 different implementations:

  • joda.time (outdated)
  • java.util.Date (deprecated)
  • java.time.* (standard since java8)

Describe the solution you'd like

It would be nice to have dateLibrary property at DefaultCodegen level, or reogranize code base to have one more additional level of abstraction with AbstractJavaBasedCodegen which could be base interface for AbstractJavaCodegen, AbstractScalaCodegen, AbstractKotlinCodegen and others.

It will allow to describe final implementations with exact date libraries they support.

After all final implementations will support dateLibrary property we can set java8 library by default from the next major release and continue with migration of every final implementation

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