Skip to content

Commit 55207c2

Browse files
authored
fix: use correct property name for Java version support (#10)
- Replaced `props.distribution ?? defaultRange` with `props.supported ?? defaultRange` to properly handle the `supported` property when defaulting Java options. - Ensured the logic in `defaultUndefinedJavaOptions` aligns with the updated property names. This change resolves inconsistencies in the handling of the `supported` property in Java version configurations.
1 parent e972088 commit 55207c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/common/distribution/DistributionFactory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export class HeliosServer {
124124
private defaultUndefinedJavaOptions(props: JavaVersionProps): Required<JavaVersionProps> {
125125
const [defaultRange, defaultSuggestion] = this.defaultJavaVersion()
126126
return {
127-
supported: props.distribution ?? defaultRange,
127+
supported: props.supported ?? defaultRange,
128128
distribution: props.distribution ?? this.defaultJavaPlatform(),
129129
suggestedMajor: props.suggestedMajor ?? defaultSuggestion,
130130
}

0 commit comments

Comments
 (0)