Skip to content

Springboot 3.5.0 compatibility issue #2117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
WoongE opened this issue Jun 2, 2025 · 1 comment
Open

Springboot 3.5.0 compatibility issue #2117

WoongE opened this issue Jun 2, 2025 · 1 comment
Labels
type: bug Something isn't working

Comments

@WoongE
Copy link

WoongE commented Jun 2, 2025

Hello. I found an issue while upgrading to springboot 3.5.0.

Springboot 3.5.0 uses graphql-java:24.0 and java-dataloader:5.0.0

With the introduction of jspecify, IDEs started throwing errors that didn't exist before.

In this version, Any? inheritance for the Value type of DataLoader is no longer available. You must explicitly inherit from Any.

The current code is no longer suitable.

Image

But, I believe that developers should be able to choose whether the result type of DataLoader is nullable or non-null.

I think graphql-java should be,

// current
@NullMarked
public class DataLoader<K, V>

// I hope
@NullMarked
public class DataLoader<K, @Nullable V>

For now, I am temporarily using @Suppress("UPPER_BOUND_VIOLATED") to ignore the issue.

@WoongE WoongE added the type: bug Something isn't working label Jun 2, 2025
@marvinelsen
Copy link

We are facing the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Development

No branches or pull requests

2 participants