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

4.2.1 does not work with Java 22 EA builds #275

Open
wilkinsona opened this issue Mar 18, 2024 · 2 comments · May be fixed by #279
Open

4.2.1 does not work with Java 22 EA builds #275

wilkinsona opened this issue Mar 18, 2024 · 2 comments · May be fixed by #279

Comments

@wilkinsona
Copy link

We've recently upgraded Spring Boot to Awaitility 4.2.1 from 4.2.0 and our Java 22 CI builds are now failing with the following exception:

java.lang.NumberFormatException: For input string: "22-beta"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
    at java.lang.Integer.parseInt(Integer.java:588)
    at java.lang.Integer.parseInt(Integer.java:685)
    at org.awaitility.core.JavaVersionDetector.getJavaMajorVersion(JavaVersionDetector.java:21)
    at org.awaitility.core.LambdaErrorMessageGenerator.getLambdaDetectionClassName(LambdaErrorMessageGenerator.java:86)
    at org.awaitility.core.LambdaErrorMessageGenerator.isLambdaClass(LambdaErrorMessageGenerator.java:30)
    at org.awaitility.core.CallableHamcrestCondition.getCallableDescription(CallableHamcrestCondition.java:51)
    at org.awaitility.core.AbstractHamcrestCondition.getMatchMessage(AbstractHamcrestCondition.java:68)
    at org.awaitility.core.AbstractHamcrestCondition.lambda$new$0(AbstractHamcrestCondition.java:51)
    at org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:248)
    at org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:235)
    at java.util.concurrent.FutureTask.run(FutureTask.java:317)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
    at java.lang.Thread.run(Thread.java:1570

We'll roll back to 4.2.0 until Java 22 has GAed later this week.

@yrodiere
Copy link

We're getting the same problem on Hibernate Search with JDK 23 EA:

java.lang.NumberFormatException: For input string: "23-ea"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
    at java.lang.Integer.parseInt(Integer.java:588)
    at java.lang.Integer.parseInt(Integer.java:685)
    at org.awaitility.core.JavaVersionDetector.getJavaMajorVersion(JavaVersionDetector.java:21)

@yrodiere
Copy link

See also #277

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants