Skip to content

#4788: remove System.getProperty() from java-inflector + undertow codegens #5066

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

Closed

Conversation

ePaul
Copy link
Contributor

@ePaul ePaul commented Mar 14, 2017

Remove System.getProperty from language codegens.
It was just used for apiPackage/modelPackage, for which we have regular parameters.

PR checklist

  • Read the contribution guidelines.
  • Ran the shell/batch script under ./bin/ to update Petstore sample so that CIs can verify the change.
    → bin/java-undertow-server.sh, bin/java-inflector-petstore-server.sh (before the change, afterwards nothing changed.)
  • Filed the PR against the correct branch: master for non-breaking changes and 2.3.0 branch for breaking (non-backward compatible) changes. (unclear, see below)

Description of the PR

This removes the usage of system properties from UndertowCodegen and JavaInflectorCodegen. It adds a warning in case the properties are still used. (This is part of a bigger effort to get rid of system properties, who have bad effects if there are have multiple (consecutive or even parallel) Codegen runs in the same JVM – see #4788.)

I'm not sure if this counts as a breaking change – the original effect of the system property being set is not there anymore. – If so, I can put this against the 2.3.0 branch, and create a similar change for master which just outputs the warning, but still uses the system property. Opinions?
Also, is WARN the right level, or should this be ERROR?

@ePaul ePaul changed the title 4788 remove get property from languages #4788: remove System.getProperty() from language codegens Mar 14, 2017
@ePaul ePaul changed the title #4788: remove System.getProperty() from language codegens #4788: remove System.getProperty() from java-inflector + undertow codegens Mar 14, 2017
…ens.

It was just used for apiPackage/modelPackage, for which we have regular parameters.
@ePaul ePaul force-pushed the 4788-remove-getProperty-from-languages branch from 7b41ae4 to 78dafec Compare March 27, 2017 20:33
@ePaul
Copy link
Contributor Author

ePaul commented Mar 27, 2017

This needs some reconsideration, I'll reopen it later again.

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

Successfully merging this pull request may close these issues.

1 participant