You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "David Smiley (Jira)" <ji...@apache.org> on 2026/07/06 02:28:00 UTC
[jira] [Resolved] (SOLR-18296) Upgrade google-java-format to 1.35.0 (fixes JDK 24/25 build break)
[ https://issues.apache.org/jira/browse/SOLR-18296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Smiley resolved SOLR-18296.
---------------------------------
Fix Version/s: 10.1
Resolution: Fixed
> Upgrade google-java-format to 1.35.0 (fixes JDK 24/25 build break)
> ------------------------------------------------------------------
>
> Key: SOLR-18296
> URL: https://issues.apache.org/jira/browse/SOLR-18296
> Project: Solr
> Issue Type: Task
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Serhiy Bzhezytskyy
> Priority: Major
> Labels: pull-request-available
> Fix For: 10.1
>
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> Solr's spotless/tidy pins google-java-format 1.18.1 (gradle/libs.versions.toml).
> That version calls javac internals — Log$DeferredDiagnosticHandler.getDiagnostics() — whose signatures changed in JDK 24, so `gradlew tidy` / `spotlessApply` throws NoSuchMethodError on JDK 24+. google-java-format 1.34.0+ adds support for the newer JDKs; 1.35.0 is the current release.
> This bumps google-javaformat 1.18.1 -> 1.35.0. The Java baseline is unchanged (JDK 21); this only affects the spotless code formatter.
> Scope:
> - gradle/libs.versions.toml: google-javaformat 1.18.1 -> 1.35.0
> - re-running the formatter (`gradlew tidy`) reformats ~35 files (minor, mechanical — the new version's formatting rules)
> - spotless (8.3.0) drives the new formatter version with no other change
> Verified on Eclipse Temurin 21 and JDK 25: `gradlew spotlessJavaCheck` passes.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org