Skip to content

1.42.0 - 1.43.2025051708 Problems with generics casting #4053

Closed
@anar-ibragimoff

Description

@anar-ibragimoff

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:

Image

starting from v1.42.0 we are getting following errors:

Image

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.

test.zip

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions