Skip to content

Commit a8cbebf

Browse files
authored
Merge pull request #8682 from mbien/fix-disco-download
Fix disco client JDK download action
2 parents 1fab9a1 + 0e18f08 commit a8cbebf

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

java/java.disco/src/org/netbeans/modules/java/disco/Client.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ public Optional<Distribution> getDistribution(String text) {
135135
.findFirst();
136136
}
137137

138-
public synchronized PkgInfo getPkgInfo(String ephemeralId, Semver javaVersion) {
139-
return getDisco().getPkgInfoByEphemeralId(ephemeralId, javaVersion);
138+
public synchronized PkgInfo getPkgInfoByPkgId(String id, Semver javaVersion) {
139+
return getDisco().getPkgInfoByPkgId(id, javaVersion);
140140
}
141141

142142
public synchronized Future<?> downloadPkg(PkgInfo pkgInfo, String absolutePath) throws InterruptedException {

java/java.disco/src/org/netbeans/modules/java/disco/DownloadPanel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ private void downloadBundle(File destinationFolder) {
114114
setStatus("Preparing...");
115115
submit(() -> {
116116
Pkg bundle = state.selection.get(discoClient);
117-
return discoClient.getPkgInfo(bundle.getEphemeralId(), bundle.getJavaVersion());
117+
return discoClient.getPkgInfoByPkgId(bundle.getId(), bundle.getJavaVersion());
118118
}).then(pkgInfo -> {
119119
download = new File(destinationFolder, pkgInfo.getFileName());
120120
String path = download.getAbsolutePath();

0 commit comments

Comments
 (0)