Skip to content

Springboot 3.5.0 compatibility issue #2117

@WoongE

Description

@WoongE

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions