Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Corretto distribution_version loses build/revision components

Abierto
#164 0 comentarios 0 reacciones 1 asignado Ver en GitHub

@HanSolo ya está trabajando en esto.

Desde el 6/10/2026.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
52/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
java

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Java
Estrellas
155
Forks
18
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de foojayio/discoapi

Todos los issues de foojayio/discoapi

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.