[Task]: Upgrade Spotless and google-java-format so the build runs on JDK 26+

オープン
#8,628 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java
領域
build-system

調査の方向性

Start in the Maven build configuration where spotless-maven-plugin 2.43.0 and the googleJavaFormat version are defined. Run spotless:apply on JDK 26 or newer, upgrade the plugin to 3.10.3 and google-java-format to 1.36.1, then verify the build succeeds and only the described formatting and empty-POM-element changes remain.

索引モデルが issue の本文から書いたものです。

説明

awaiting triage Infrastructure P3
What needs to happen?

The build fails on JDK 26 and newer in spotless:apply. google-java-format (the version Spotless 2.43.0 uses by default) reads the javac field JCCompilationUnit.endPositions, which newer JDKs no longer have:

java.lang.NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCCompilationUnit does not have member field 'com.sun.tools.javac.tree.EndPosTable endPositions'

Proposed change

  • spotless-maven-plugin 2.43.0 → 3.10.3
  • pin googleJavaFormat to 1.36.1 (built for Java 21, Hop's current target)

Impact

The newer formatter reformats a small number of files: mostly comment indentation inside switch blocks and a few text blocks. sortPom also collapses empty pom elements to <x/>. No functional changes.

Issue Priority

Priority: 3

Issue Component

Component: Infrastructure

主要言語
Java
スター
1.6k
フォーク
499
平均マージ
1日 5時間
マージ済み PR(30日)
316

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/hop のほかの issue

apache/hop の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。