jdk-api-diff icon indicating copy to clipboard operation
jdk-api-diff copied to clipboard

`Jdk8Repackager` should not fail when optional libraries are missing

Open Marcono1234 opened this issue 3 years ago • 0 comments

It looks like Jdk8Repackager tries to process multiple library JARs, some of which are optional. When one of the libraries is missing, repackaging fails. For example the Temurin OpenJDK 8 builds (https://adoptium.net/releases.html?variant=openjdk8) do not seem to include jre/lib/javaws.jar.

Maybe Jdk8Repackager should only require that rt.jar exists and for all other libraries first check if they exist before trying to process them.

(Also it would be good to improve the error output here by joining the lines using \n.)

Marcono1234 avatar Nov 05 '21 18:11 Marcono1234