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

correctly detects java versions above java 8 #94

Merged
merged 2 commits into from
Mar 17, 2021

Conversation

pauldambra
Copy link

Here's a possible solution to #85

The java version checker called for the system property directly which made it hard to test so I've pulled that behaviour separate to the EnvUtils that contained it and inject the system property

This let me write parameterised tests to check a range of java versions.

I spotted that EnvUtil.getJavaVersion was (I'm assuming) typoed as EnvUtil.getJavaersion so fixed that too.

@pauldambra
Copy link
Author

pauldambra commented Feb 29, 2020

felt bad about renaming the method and realised why.... subconscious was worried about breaking somebody else's code unexpectedly since it's a public method.

Have instead deprecated it so both getJavaersion and getJavaVersion are available

@pauldambra
Copy link
Author

@janithb it would be great to get this merged.... happy to make changes if you don't want to merge as is

yuyuchen09 pushed a commit to yuyuchen09/audit4j-core that referenced this pull request Mar 15, 2021
@janithb janithb merged commit 2952ffb into audit4j:master Mar 17, 2021
@yuyuchen09
Copy link

yuyuchen09 commented Mar 18, 2021

Thank you for the merge! Are you going to merge other PRs, and do a public release?

@ramuwso2
Copy link

ramuwso2 commented Feb 7, 2022

HI @janithb

I need may application to be upgraded to java 11. But because of this issue, im unable to do this.

Can you please let me know when will it be released? or any other alternative solution for this?

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.

4 participants