Open thegovind opened 1 year ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @kushagraThapar, @TheovanKraay
@aayush3011 - please take a look at this, thanks!
@thegovind, is the version of the JDK/JRE you're using an early access version? Based on this issue it appears to be following the version format mentioned for early access builds defined in JEP 223.
@kushagraThapar / @aayush3011 based on the mentioned JEP it looks like this can be fixed by checking the first part to end with -ea
before continuing parsing.
Thanks @alzimmermsft for the suggestion. @aayush3011 can you please follow up on this.
Describe the bug For openjdk 17+ versions, java version is a string (in
System.getProperty("java. Version")
) rather than an integer. By trying to parse this inUtils
, it's resulting inNumberFormatException
Exception or Stack Trace
To Reproduce Run with openjdk:17 or higher as base image in Docker
Code Snippet https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/Utils.java#L115
Expected behavior Parse the java version accurately without any error in stacktrace
Setup (please complete the following information):
Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report