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

Avoid using System.getProperty("line.separator") in messaging code #10508

Closed
ngmr opened this issue Jan 21, 2020 · 0 comments · Fixed by #10509
Closed

Avoid using System.getProperty("line.separator") in messaging code #10508

ngmr opened this issue Jan 21, 2020 · 0 comments · Fixed by #10509
Assignees
Labels
bug This bug is not present in a released version of Open Liberty release bug This bug is present in a released version of Open Liberty release:20002

Comments

@ngmr
Copy link
Member

ngmr commented Jan 21, 2020

Use of System.getProperty("line.separator") can run into trouble if Java 2 Security is enabled, as it induces a security check on the method call.

As minimum level of Java support is now (at least) Java 7, these calls can be safely replaced with calls to System.lineSeparator(), which does not induce a security check.

@ngmr ngmr added the bug This bug is not present in a released version of Open Liberty label Jan 21, 2020
@ngmr ngmr self-assigned this Jan 21, 2020
@ngmr ngmr added the release bug This bug is present in a released version of Open Liberty label Jan 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This bug is not present in a released version of Open Liberty release bug This bug is present in a released version of Open Liberty release:20002
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants