Handle legacy OpenJDK URL layout

This commit is contained in:
copilot-swe-agent[bot]
2026-07-28 02:35:20 +00:00
committed by GitHub
parent 2c4a2dda70
commit cb48866ec3
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -131939,7 +131939,7 @@ class OpenJdkDistribution extends JavaBase {
const pattern = new RegExp(`href="(https://download\\.java\\.net/[^"]+/openjdk-([^"_]+)_${platformPattern}-${arch}_bin\\.${extensionPattern})"`, 'g');
return Array.from(html.matchAll(pattern), match => {
const url = match[1];
const build = url.match(/\/(\d+)\/GPL\/openjdk-/)?.[1];
const build = url.match(/\/(\d+)\/(?:GPL\/)?openjdk-/)?.[1];
return {
version: this.toSemver(match[2], build),
url