On Mon, 28 Sep 2026 20:57:19 GMT, Nir Lisker <[email protected]> wrote:
>> That's a problem for the AIs in 2062.
>
> Or just use `JavaLanguageVersion.of(jdkVersionInfo.feature())` like #2294
> does.
>
> Edit: this only works if this build has access to the main build.
@nlisker : something is still wrong here, the main build fails when compiling
with jdk25:
* What went wrong:
Could not determine the dependencies of task ':manualTests:distTar'.
> Could not resolve all dependencies for configuration
> ':manualTests:runtimeClasspath'.
> Failed to calculate the value of task ':manualTests:compileJava' property
'javaCompiler'.
> Cannot find a Java installation on your machine (Mac OS X 26.7 aarch64)
matching: {languageVersion=26, vendor=any vendor,
implementation=vendor-specific, nativeImageCapable=false}. Toolchain download
repositories have not been configured.
if I use
`toolchain.languageVersion.set(JavaLanguageVersion.of(jdkVersionInfo.feature()))`
the error becomes
* What went wrong:
A problem occurred evaluating project ':manualTests'.
> Could not get unknown property 'jdkVersionInfo' for extension 'java' of type
> org.gradle.api.plugins.internal.DefaultJavaPluginExtension.
please help!
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/2156#discussion_r4170506613