GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — DataFetchingEnvironment getDataLoader doesn't match DataLoader signature · Issue #4179 · graphql-java/graphql-java

DataFetchingEnvironment getDataLoader doesn't match DataLoader signature #4179

New issue
Copy link
New issue
Copy link
Closed
Closed
DataFetchingEnvironment getDataLoader doesn't match DataLoader signature#4179
Copy link
Labels
keep-openTells Stale Bot to keep PRs and issues openTells Stale Bot to keep PRs and issues open

Description

@ctbarbour
ctbarbour
opened on Nov 25, 2025
Issue body actions

Describe the bug

DataFetchingEnvironment.getDataLoader<K, V>() has type parameters that are implicitly non-null due to @NullMarked but DataLoader<K, V extends @Nullable Object> explicitly allows nullable V. This creates a type mismatch when calling from Kotlin. As of Kotlin 2.1.0, Kotlin compiler treats JSpecify types as null-safe types.

To Reproduce

From Kotlin, attempt to get a DataLoader with a nullable value type:

// Kotlin sees getDataLoader as requiring V : Any
val loader: DataLoader<String, Player?>? = env.getDataLoader("PlayerLoader")
// Error: Type argument is not within its bounds: must be subtype of 'Any'
Reacted by Francesco Vasco

Activity

  1. github-actions commented on Jan 25, 2026

    @github-actions
    github-actionsBot
    on Jan 25, 2026 – with GitHub Actions
    Contributor
    More actions

    Hello, this issue has been inactive for 60 days, so we're marking it as stale. If you would like to continue this discussion, please comment within the next 30 days or we'll close the issue.

  2. github-actions
    added
    Stale
    on Jan 25, 2026
  3. github-actions commented on Feb 24, 2026

    @github-actions
    github-actionsBot
    on Feb 24, 2026 – with GitHub Actions
    Contributor
    More actions

    Hello, as this issue has been inactive for 90 days, we're closing the issue. If you would like to resume the discussion, please create a new issue.

  4. github-actions
    closed this as not plannedon Feb 24, 2026
  5. andimarek
    reopened this on Feb 24, 2026
  6. github-actions
    removed
    Stale
    on Feb 25, 2026
  7. github-actions commented on Apr 26, 2026

    @github-actions
    github-actionsBot
    on Apr 26, 2026 – with GitHub Actions
    Contributor
    More actions

    Hello, this issue has been inactive for 60 days, so we're marking it as stale. If you would like to continue this discussion, please comment within the next 30 days or we'll close the issue.

  8. github-actions
    added
    Stale
    on Apr 26, 2026
  9. dondonz
    added
    keep-openTells Stale Bot to keep PRs and issues openTells Stale Bot to keep PRs and issues open
    and removed
    Stale
    on Apr 27, 2026
  10. dondonz commented on Apr 27, 2026

    @dondonz
    dondonz
    on Apr 27, 2026
    Member
    More actions

    Adding keep open - this should be fixed

  11. bbakerman commented on Jun 4, 2026

    @bbakerman
    bbakerman
    on Jun 4, 2026
    Member
    More actions

    I think this is fixed

    28e1e7a

    #4180

    I am going to close this

  12. bbakerman
    closed this as completedon Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    keep-openTells Stale Bot to keep PRs and issues openTells Stale Bot to keep PRs and issues open

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.