-
Notifications
You must be signed in to change notification settings - Fork 246
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
HSEARCH-5155 Build with JDK 21 #4171
Conversation
Looks nice 😃 thanks! |
Right, sorry. Done. |
So... turns out this won't work because impsort maven plugin needs a release... see revelc/impsort-maven-plugin#83. |
5efb7b9
to
11857b3
Compare
Draft again... revelc/formatter-maven-plugin#881 |
Thanks for your pull request! This pull request appears to follow the contribution rules. › This message was automatically generated. |
I added an upgrade to formatter-maven-plugin 2.24.0, which supposedly solves the Java 21 compatibility problem... but then it has other problems, so we'll probably have to wait for 2.24.1 or 2.25.0 :( |
4eaf74b
to
7f7f619
Compare
Alright, 2.24.1 is out, I updated the PR... and...
🤦 revelc/impsort-maven-plugin#101 (comment) 😢 |
Added an upgrade to a version of impsort that supports JDK 21, and rebased. 🤞 |
….0 to 1.11.0 This adds JDK 21 support in particular.
1. Shutdown the thread pool eventually 2. Handle input streams in try-with-resources to please Eclipse compiler.
Meaning use JDK 21 for building main artifacts; the baseline (JDK 11) will not change.
😖 😕 there seems to be some precision loss with JDK 21 switch... |
This is very odd... If this is related to the jdk, I'd expect this to affect Elasticsearch as well... ? Or maybe there's some opensearch-specific testing or JSON handling at play? Did you pinpoint where the precision loss occurs exactly? Compilation of a constant, or Jason parsing/formatting, or... ? |
yeah ... |
https://bugs.openjdk.org/browse/JDK-8202555 ^ looks like that's the reason 😕 I've tested with JDK 17 (ok) 18 (ok) 19 (not ok) and 21 (not ok) 😄 I guess let's just update the test value and move on? ( |
+1 if it's a jdk bug, and it's already been reported, not much we can do. |
- so that there are no "rounding" problems when converting to string (https://bugs.openjdk.org/browse/JDK-8291475)
Quality Gate passedIssues Measures |
The build passed! thanks 😃! |
https://hibernate.atlassian.net/browse/HSEARCH-5155