Description
Starting from 1.42.0
we experiencing massive problems with most of our java-projects with SpringBoot Webflux - builtin java-analyser detects false-positive compilation errors.
Example:
with Language Support for Java v1.41.1
, still works:
starting from v1.42.0
we are getting following errors:
The issue is reproducible till the latest v1.43.2025051708
.
As a workaround, it helps to activate experimental javac-option:
"java.jdt.ls.java.home": "C:\\Program Files\\Java\\jdk-24.0.0_36",
"java.jdt.ls.javac.enabled": "on"
Unfortunately this workaround is not preferred solution due to various reasons.
Sample class:
import reactor.core.publisher.Mono;
public class TestClass {
public Mono<Integer> testMethod() {
return Mono.just(Integer.valueOf(13))
.switchIfEmpty(
Mono.defer( () -> Mono.just( Integer.valueOf(12) ) )
);
}
}
I've prepared a small sample-project with error, see attached archive.
Together with #3899 it led us to stick with v1.37
, which unfortunately is also not optimal, due to other problems with, for example, Test Runner for Java extension compatibility.