Skip to content

Upgrade minimum JDK to 17 and migrate JavaX to Jakarta#17859

Merged
HTHou merged 11 commits into
masterfrom
codex/jdk17-jakarta-migration
Jun 12, 2026
Merged

Upgrade minimum JDK to 17 and migrate JavaX to Jakarta#17859
HTHou merged 11 commits into
masterfrom
codex/jdk17-jakarta-migration

Fix JDK 17 migration review feedback

be178c3
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Jun 11, 2026 in 7m 47s

Quality Gate failed

Failed conditions
C Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 60 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v2/handler/ExceptionHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof IllegalPathException illegalpathexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNmJQiaSQly5slmX-&open=AZ6mNmJQiaSQly5slmX-&pullRequest=17859

Check warning on line 51 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v1/handler/ExceptionHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof DatabaseNotSetException databasenotsetexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNmHtiaSQly5slmXt&open=AZ6mNmHtiaSQly5slmXt&pullRequest=17859

Check warning on line 883 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/DataNodeTableOperatorGenerator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Merge the previous cases into this one using comma-separated label.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNl1siaSQly5slmVs&open=AZ6mNl1siaSQly5slmVs&pullRequest=17859

Check warning on line 66 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v1/handler/QueryDataSetHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof QueryStatement querystatement'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNmHgiaSQly5slmXr&open=AZ6mNmHgiaSQly5slmXr&pullRequest=17859

Check warning on line 231 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/parser/scan/SinglePageWholeChunkReader.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Merge the previous cases into this one using comma-separated label.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNl6iiaSQly5slmWV&open=AZ6mNl6iiaSQly5slmWV&pullRequest=17859

Check warning on line 66 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v2/handler/ExceptionHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof IoTDBException iotdbexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNmJQiaSQly5slmYA&open=AZ6mNmJQiaSQly5slmYA&pullRequest=17859

Check warning on line 54 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/schedule/task/DriverTaskId.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof DriverTaskId drivertaskid'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNl4eiaSQly5slmV7&open=AZ6mNl4eiaSQly5slmV7&pullRequest=17859

Check warning on line 1243 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/DataNodeTableOperatorGenerator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "java.util.List.of()" instead.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNl1siaSQly5slmV1&open=AZ6mNl1siaSQly5slmV1&pullRequest=17859

Check warning on line 115 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/metadata/read/LevelTimeSeriesCountNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this usage of 'Stream.collect(Collectors.toList())' with 'Stream.toList()' and ensure that the list is unmodified.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNlzKiaSQly5slmVl&open=AZ6mNlzKiaSQly5slmVl&pullRequest=17859

Check warning on line 176 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/execution/config/ConfigExecution.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof IoTDBException iotdbexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNlhBiaSQly5slmSv&open=AZ6mNlhBiaSQly5slmSv&pullRequest=17859

Check warning on line 54 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v1/handler/ExceptionHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof StorageEngineException storageengineexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNmHtiaSQly5slmXu&open=AZ6mNmHtiaSQly5slmXu&pullRequest=17859

Check warning on line 61 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/table/v1/handler/ExceptionHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof IllegalPathException illegalpathexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNmIqiaSQly5slmX2&open=AZ6mNmIqiaSQly5slmX2&pullRequest=17859

Check warning on line 279 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/parser/scan/SinglePageWholeChunkReader.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Merge the previous cases into this one using comma-separated label.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNl6iiaSQly5slmWa&open=AZ6mNl6iiaSQly5slmWa&pullRequest=17859

Check warning on line 1401 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/DataNodeTableOperatorGenerator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Merge the previous cases into this one using comma-separated label.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNl1siaSQly5slmVt&open=AZ6mNl1siaSQly5slmVt&pullRequest=17859

Check warning on line 183 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/execution/config/ConfigExecution.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof IoTDBRuntimeException iotdbruntimeexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNlhBiaSQly5slmSx&open=AZ6mNlhBiaSQly5slmSx&pullRequest=17859

Check warning on line 210 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/execution/config/ConfigExecution.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof StatementExecutionException statementexecutionexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNlhBiaSQly5slmS0&open=AZ6mNlhBiaSQly5slmS0&pullRequest=17859

Check warning on line 219 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/metadata/read/TimeSeriesSchemaScanNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this usage of 'Stream.collect(Collectors.toList())' with 'Stream.toList()' and ensure that the list is unmodified.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNly0iaSQly5slmVk&open=AZ6mNly0iaSQly5slmVk&pullRequest=17859

Check warning on line 63 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v1/handler/ExceptionHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof MetadataException metadataexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNmHtiaSQly5slmXw&open=AZ6mNmHtiaSQly5slmXw&pullRequest=17859

Check warning on line 60 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v1/handler/ExceptionHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof IllegalPathException illegalpathexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNmHtiaSQly5slmXv&open=AZ6mNmHtiaSQly5slmXv&pullRequest=17859

Check warning on line 49 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/table/v1/handler/ExceptionHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof QueryProcessException queryprocessexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNmIqiaSQly5slmXz&open=AZ6mNmIqiaSQly5slmXz&pullRequest=17859

Check warning on line 1242 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/DataNodeTableOperatorGenerator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "java.util.List.of()" instead.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNl1siaSQly5slmV0&open=AZ6mNl1siaSQly5slmV0&pullRequest=17859

Check warning on line 48 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v2/handler/ExceptionHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof QueryProcessException queryprocessexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNmJQiaSQly5slmX7&open=AZ6mNmJQiaSQly5slmX7&pullRequest=17859

Check warning on line 51 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v2/handler/ExceptionHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof DatabaseNotSetException databasenotsetexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNmJQiaSQly5slmX8&open=AZ6mNmJQiaSQly5slmX8&pullRequest=17859

Check warning on line 242 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/parser/scan/SinglePageWholeChunkReader.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Merge the previous cases into this one using comma-separated label.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNl6iiaSQly5slmWX&open=AZ6mNl6iiaSQly5slmWX&pullRequest=17859

Check warning on line 54 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/schedule/task/DriverTaskId.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof DriverTaskId drivertaskid'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNl4eiaSQly5slmV6&open=AZ6mNl4eiaSQly5slmV6&pullRequest=17859