Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Corretto distribution_version loses build/revision components

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

@HanSolo がすでに取り組んでいます。

2026年10月6日 から。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java

調査の方向性

Start with Corretto#getAllPkgsFromHtml in src/main/java/io/foojay/api/distribution/Corretto.java, especially lines 398–404, and compare its version handling with the linked Corretto build.gradle version configuration. Check how the parsed values populate distribution_version, java_version, and latest_build_available; done means the full distribution revision and OpenJDK patch are represented correctly and only the newest Corretto revision is marked available.

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

説明

bug

I'm seeing incorrect distribution_version values for recent Corretto releases.

For example, DiscoAPI returns these artifacts:

amazon-corretto-25.0.4.7.1-windows-x64-jdk.zip
amazon-corretto-25.0.4.8.1-windows-x64-jdk.zip
amazon-corretto-25.0.4.10.1-windows-x64-jdk.zip

but all three have:

"java_version": "25.0.4",
"distribution_version": "25.0.4",
"latest_build_available": true

The distribution_version should preserve the full Corretto version.

There also seems to be an issue with java_version. Corretto's changelog explicitly states that 25.0.4.8.1 updates its baseline to OpenJDK 25.0.4.1+1, but DiscoAPI still reports 25.0.4.

Looking at Corretto#getAllPkgsFromHtml, this seems related to:

https://github.com/foojayio/discoapi/blob/f3ccc80944ab62a45054a444523152b65d650cf2/src/main/java/io/foojay/api/distribution/Corretto.java#L398-L404

versionNumber and vNumber reference the same object, so setPatch(0) also changes the value later used as distribution_version.

More importantly, this code assumes that the Java PATCH component is always zero. That is no longer valid for CSPU releases such as 25.0.4.1.

The Corretto build also treats the fourth component of its distribution version as the build number, while the Java PATCH value comes from the OpenJDK version configuration, so these two concepts cannot be derived from the same field.

Also, all three packages are currently marked as latest_build_available=true, which makes it impossible for clients to determine the newest Corretto revision from the structured metadata alone.

主要言語
Java
スター
155
フォーク
18
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

foojayio/discoapi のほかの issue

foojayio/discoapi の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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