Fix invalid sonar warning related to other version of java #3197
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to #2251
The problem was with this sonar check. This problem should not have occurred, because in our project we use the java 8 version, but the
close
method in theExecutorService
is implemented only in java 19.Before I tried to change java version using sonar.java.source (#2900) but it didn't help.
According to this issue the only way to make analysis work for specific java version is to use jdk of this particular version.
I tried this on my on my fork of eo and it worked:
PR-Codex overview
This PR updates the Java version from 20 to 17 in the Sonar workflow.
Detailed summary