The new Java toolchain feature cannot be used at the project level in combination with source and/or target compatibility
时间: 2024-05-22 08:12:21 浏览: 267
settings that are lower than the version specified in the toolchain. This means that if you want to use the new Java toolchain feature, you must set your source and target compatibility to at least the version specified in the toolchain.
For example, if your toolchain specifies Java 11, you cannot use it with a project that has a source and/or target compatibility setting of Java 8. You must update your project to use at least Java 11.
This is because the new Java toolchain feature relies on features and APIs introduced in the specified Java version. Lowering the source and target compatibility settings would result in incompatible code that cannot be compiled using the specified toolchain.
In summary, to use the new Java toolchain feature, you must ensure that your project's source and target compatibility settings are set to at least the version specified in the toolchain.
阅读全文