Skip to content

Commit b763af1

Browse files
committed
Use correct component when determining default version value
1 parent 4408a7e commit b763af1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Download.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static void main(boolean dryRun, String... args) {
9898

9999
// Set outputs
100100
outputs.put("archive", archive.toString());
101-
var digit = Character.isDigit(jdk.version().charAt(0));
101+
var digit = Character.isDigit(jdk.release.charAt(0));
102102
outputs.put("version", website.computeVersionString(uri, digit ? "PARSE_URI" : "HASH_URI"));
103103
} catch (Exception exception) {
104104
exception.printStackTrace(System.err);

0 commit comments

Comments
 (0)