Closed pauldambra closed 3 years ago
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
@janithb it would be great to get this merged.... happy to make changes if you don't want to merge as is
Thank you for the merge! Are you going to merge other PRs, and do a public release?
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?
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 propertyThis let me write parameterised tests to check a range of java versions.
I spotted that
EnvUtil.getJavaVersion
was (I'm assuming) typoed asEnvUtil.getJavaersion
so fixed that too.