-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
7.17/JDK23 REPRODUCE WITH
lines aren't working for me
#114099
Comments
Pinging @elastic/es-delivery (Team:Delivery) |
This is actually unrelated to the runtime Java version and instead the compiler. These warnings go away when using Java 17 as the compiler version, which is what we use in CI. We've sorted out these issues in 8.x but looks like they haven't backported them to 7.17.
The difference is that CI sets This worked for me locally, but probably because I already have Java 23 cached locally by another branch. If you try running with There's likely some JDK provisioning logic that hasn't been backported here which would explain the difference in behavior. It likely hasn't been backported for a reason, which is that 8.x and 7.17 have sufficiently diverged to make these backports kind of a pain. If my described workaround works for you we'll likely close this given 7.17 going away with the 9.0 release. |
Ok yeah
|
E.g. investigating #114089, the
REPRODUCE WITH
line is as follows:When I run this I get an error (build scan):
So I added
JAVA23_HOME
as it suggests, even though there's no mention ofJAVA22_HOME
so I suspect this isn't the exact right fix:Now I get a load of errors about the new-to-JDK23
this-escape
andlossy-conversions
warnings (build scan 1, build scan 2).Not sure what's different between my dev environment and CI, because CI seems to be handling this ok. Any ideas?
The text was updated successfully, but these errors were encountered: