Skip to content

Add missing provides directives for provided services to text-serializer-gson module descriptor - #1439

Merged
kashike merged 1 commit into
PaperMC:main/5from
emilyy-dev:fix/gson-module-provides-service
Jul 25, 2026
Merged

Add missing provides directives for provided services to text-serializer-gson module descriptor#1439
kashike merged 1 commit into
PaperMC:main/5from
emilyy-dev:fix/gson-module-provides-service

Conversation

@emilyy-dev

Copy link
Copy Markdown
Member

This fixes an issue in modular environments when using the JSONComponentSerializer directly (as opposed to GsonComponentSerializer) where it fails to find a service provider for JSONComponentSerializer.Provider so it falls back to the dummy impl which only throws exceptions.
A similar case applies to the data component value converter, but in that situation all providers are collected so the gson one is skipped and its converters are not registered.

@kashike kashike self-assigned this Jul 25, 2026
@kashike
kashike added this pull request to the merge queue Jul 25, 2026
Merged via the queue into PaperMC:main/5 with commit 1eb75f3 Jul 25, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants