Skip to content

Commit ab580cf

Browse files
authored
Merge pull request #50264 from manofthepeace/fixDecompilerDownload
Fix initial download of decompiler when version not provided
2 parents 90423b0 + 041d91e commit ab580cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/deployment/src/main/java/io/quarkus/deployment/pkg/jar/VineflowerDecompiler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ class VineflowerDecompiler implements Decompiler {
2222

2323
@Override
2424
public void init(Context context) {
25-
this.context = context;
26-
this.decompilerJar = context.jarLocation.resolve(String.format("vineflower-%s.jar",
27-
context.versionStr != null ? context.versionStr : DEFAULT_VINEFLOWER_VERSION));
25+
this.context = context.versionStr != null ? context
26+
: new Context(DEFAULT_VINEFLOWER_VERSION, context.jarLocation, context.decompiledOutputDir);
27+
this.decompilerJar = this.context.jarLocation.resolve(String.format("vineflower-%s.jar", this.context.versionStr));
2828
}
2929

3030
@Override

0 commit comments

Comments
 (0)