René's URL Explorer Experiment


Title: SimplePerformantInstrumentation hooks declares InstrumentationState non-null but createState returns null by default · Issue #4433 · graphql-java/graphql-java · GitHub

Open Graph Title: SimplePerformantInstrumentation hooks declares InstrumentationState non-null but createState returns null by default · Issue #4433 · graphql-java/graphql-java

X Title: SimplePerformantInstrumentation hooks declares InstrumentationState non-null but createState returns null by default · Issue #4433 · graphql-java/graphql-java

Description: Describe the bug In graphql-java 26, SimplePerformantInstrumentation is annotated with @NullMarked. Its unannotated InstrumentationState callback parameters are therefore exposed to Kotlin as non-null. However, createState() and createSt...

Open Graph Description: Describe the bug In graphql-java 26, SimplePerformantInstrumentation is annotated with @NullMarked. Its unannotated InstrumentationState callback parameters are therefore exposed to Kotlin as non-n...

X Description: Describe the bug In graphql-java 26, SimplePerformantInstrumentation is annotated with @NullMarked. Its unannotated InstrumentationState callback parameters are therefore exposed to Kotlin as non-n...

Opengraph URL: https://github.com/graphql-java/graphql-java/issues/4433

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SimplePerformantInstrumentation hooks declares InstrumentationState non-null but createState returns null by default","articleBody":"**Describe the bug**\nIn graphql-java 26, `SimplePerformantInstrumentation` is annotated with `@NullMarked`. Its unannotated `InstrumentationState` callback parameters are therefore exposed to Kotlin as non-null.\n\nHowever, `createState()` and `createStateAsync()` remain explicitly nullable, and the default `SimplePerformantInstrumentation.createState()` implementation returns `null`.\n\nThis appears to be a nullability-contract mismatch introduced by the [JSpecify instrumentation changes in #4272](https://github.com/graphql-java/graphql-java/pull/4272).\n\nThe callback state parameters should either be annotated `@Nullable`, matching the existing optional-state behavior, or graphql-java should guarantee a non-null empty state. Making the parameters nullable would preserve the existing runtime contract.\n\n**To Reproduce**\nPlease provide a code example or even better a test to reproduce the bug.\n\n```kotlin\n  import graphql.ExecutionResult\n  import graphql.GraphQL\n  import graphql.execution.instrumentation.InstrumentationContext\n  import graphql.execution.instrumentation.InstrumentationState\n  import graphql.execution.instrumentation.SimplePerformantInstrumentation\n  import graphql.execution.instrumentation.parameters.InstrumentationExecutionParameters\n  import graphql.schema.idl.RuntimeWiring\n  import graphql.schema.idl.SchemaGenerator\n  import graphql.schema.idl.SchemaParser\n  import kotlin.test.Test\n\n  class InstrumentationStateNullabilityTest {\n\n      private class StatelessInstrumentation : SimplePerformantInstrumentation() {\n          override fun beginExecution(\n              parameters: InstrumentationExecutionParameters,\n              state: InstrumentationState\n          ): InstrumentationContext\u003cExecutionResult>? = null\n      }\n\n      @Test\n      fun `stateless Kotlin instrumentation should execute without an NPE`() {\n          val typeRegistry = SchemaParser().parse(\n              \"\"\"\n              type Query {\n                  hello: String\n              }\n              \"\"\".trimIndent()\n          )\n          val schema = SchemaGenerator().makeExecutableSchema(\n              typeRegistry,\n              RuntimeWiring.MOCKED_WIRING\n          )\n          val graphQL = GraphQL.newGraphQL(schema)\n              .instrumentation(StatelessInstrumentation())\n              .build()\n\n          graphQL.execute(\"{ hello }\")\n      }\n  }\n```\n\nThe execution fails when `beginExecution` is invoked:\n\n```\n  java.lang.NullPointerException:\n  Parameter specified as non-null is null:\n  method StatelessInstrumentation.beginExecution, parameter state\n```\n\nA current workaround is to return a non-null marker state:\n\n```kotlin\nprivate object EmptyInstrumentationState : InstrumentationState\n\n override fun createState(\n      parameters: InstrumentationCreateStateParameters\n  ): InstrumentationState = EmptyInstrumentationState\n```\n","author":{"url":"https://github.com/samuelAndalon","@type":"Person","name":"samuelAndalon"},"datePublished":"2026-08-04T22:19:29Z","url":"https://github.com/graphql-java/graphql-java/issues/4433"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:879834e4-2a04-f1f3-fbd8-87d9110d8222
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD9D2:20309E:A4EEC6:D84D08:6AED4344
html-safe-nonce116d6a7165f7a381716bf9135541ec3a2b7047a3c5679ca47b841e3d48b01d20
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUQyOjIwMzA5RTpBNEVFQzY6RDg0RDA4OjZBRUQ0MzQ0IiwidmlzaXRvcl9pZCI6IjI2NjA1MjMzODE3MDEyOTY5NjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6e44c2ff7fb52f1155bac9662f78b0172655898da35afcbdd80988e5f713317d
hovercard-subject-tagissue:5065391277
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/graphql-java/graphql-java/4433/issue_layout
twitter:imagehttps://opengraph.githubassets.com/edadaa3139cef649411028f1285de8b684abc652091c1a87a898dc9df73fcf39/graphql-java/graphql-java/issues/4433
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/edadaa3139cef649411028f1285de8b684abc652091c1a87a898dc9df73fcf39/graphql-java/graphql-java/issues/4433
og:image:altDescribe the bug In graphql-java 26, SimplePerformantInstrumentation is annotated with @NullMarked. Its unannotated InstrumentationState callback parameters are therefore exposed to Kotlin as non-n...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesamuelAndalon
hostnamegithub.com
expected-hostnamegithub.com
None56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11
turbo-cache-controlno-preview
go-importgithub.com/graphql-java/graphql-java git https://github.com/graphql-java/graphql-java.git
octolytics-dimension-user_id14289921
octolytics-dimension-user_logingraphql-java
octolytics-dimension-repository_id38602457
octolytics-dimension-repository_nwographql-java/graphql-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id38602457
octolytics-dimension-repository_network_root_nwographql-java/graphql-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/graphql-java/graphql-java/issues/4433#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fissues%2F4433
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fissues%2F4433
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=graphql-java%2Fgraphql-java
Reloadhttps://github.com/graphql-java/graphql-java/issues/4433
Reloadhttps://github.com/graphql-java/graphql-java/issues/4433
Reloadhttps://github.com/graphql-java/graphql-java/issues/4433
graphql-javahttps://github.com/graphql-java
graphql-javahttps://github.com/graphql-java/graphql-java
Codehttps://github.com/graphql-java/graphql-java
Issues27 (27)https://github.com/graphql-java/graphql-java/issues
Pull requests32 (32)https://github.com/graphql-java/graphql-java/pulls
Discussionshttps://github.com/graphql-java/graphql-java/discussions
Actionshttps://github.com/graphql-java/graphql-java/actions
Projectshttps://github.com/graphql-java/graphql-java/projects
Wikihttps://github.com/graphql-java/graphql-java/wiki
Security and qualityhttps://github.com/graphql-java/graphql-java/security
Insightshttps://github.com/graphql-java/graphql-java/pulse
https://github.com/graphql-java/graphql-java
New issuehttps://github.com/login?return_to=https://github.com/graphql-java/graphql-java/issues/4433
New issuehttps://github.com/login?return_to=https://github.com/graphql-java/graphql-java/issues/4433
#4435https://github.com/graphql-java/graphql-java/pull/4435
SimplePerformantInstrumentation hooks declares InstrumentationState non-null but createState returns null by defaulthttps://github.com/graphql-java/graphql-java/issues/4433#top
#4435https://github.com/graphql-java/graphql-java/pull/4435
https://github.com/samuelAndalon
samuelAndalonhttps://github.com/samuelAndalon
on Aug 4, 2026https://github.com/graphql-java/graphql-java/issues/4433#issue-5065391277
JSpecify instrumentation changes in #4272https://github.com/graphql-java/graphql-java/pull/4272
samuelAndalonhttps://github.com/samuelAndalon
on Aug 7, 2026https://github.com/graphql-java/graphql-java/issues/4433#event-29127874708
chore: update to graphql-java 26 (#2205)https://github.com/ExpediaGroup/graphql-kotlin/commit/3b75ff4811d44f77aca7826403ff027ac4b51189
#2205https://github.com/ExpediaGroup/graphql-kotlin/pull/2205
3b75ff4https://github.com/ExpediaGroup/graphql-kotlin/commit/3b75ff4811d44f77aca7826403ff027ac4b51189
andimarekhttps://github.com/andimarek
completedhttps://github.com/graphql-java/graphql-java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#4435https://github.com/graphql-java/graphql-java/pull/4435
on Aug 23, 2026https://github.com/graphql-java/graphql-java/issues/4433#event-29868921700
pullhttps://github.com/apps/pull
on Aug 23, 2026https://github.com/graphql-java/graphql-java/issues/4433#event-29873654532
fix: mark InstrumentationState callback params as @nullablehttps://github.com/Mu-L/graphql-java/commit/79423f0b5fbe99db6a059e5991153df4967e92c7
@nullablehttps://github.com/nullable
https://docs.github.com/articles/closing-issues-via-commit-messages
79423f0https://github.com/Mu-L/graphql-java/commit/79423f0b5fbe99db6a059e5991153df4967e92c7
Sign up for freehttps://github.com/signup?return_to=https://github.com/graphql-java/graphql-java/issues/4433
Sign in to commenthttps://github.com/login?return_to=https://github.com/graphql-java/graphql-java/issues/4433
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.