Open koppor opened 3 weeks ago
Very strange that you're seeing differences on those two Java versions. You might want to check the very latest Gradle plugin version, as I see you're using an older version still that does not contain a recent fix to detect missing method types.
Very strange that you're seeing differences on those two Java versions. You might want to check the very latest Gradle plugin version, as I see you're using an older version still that does not contain a recent fix to detect missing method types.
Hi, JabRef developer here.
Issue persists on trying .\gradlew rewriteRun
with id 'org.openrewrite.rewrite' version '6.20.1'
in build.gradle
.
We just merged a fix for a very similar issue, there affecting static imports of variables, not methods:
Figured that might be interesting to call out here as the fix could be similar.
Context: https://github.com/JabRef/jabref/blob/f4e87e5ef45bd87c373b17717343a59af7b4e931/rewrite.yml#L208
When using JDK21, everything is fine.
When using JDK17, imports are removed
This import, however, is necessary.
Since JDK17 is eol in 5 years from now, I wanted to report the issue. If someone stumbles over it.