Skip to content
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

fix: Return JMap instead of JHashMap in typed map converter (Record<string, T>) #518

Merged
merged 4 commits into from
Feb 3, 2025

Conversation

mrousavy
Copy link
Owner

@mrousavy mrousavy commented Feb 3, 2025

Adds a test to the example module where we wrap a typed map (Record<string, T>) inside a plain structure/object, and fixes the error that occurred at runtime because we tried to find a constructor that took a JHashMap - when in reality it only takes a JMap.

Superseded #516

Copy link

vercel bot commented Feb 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
nitro-docs ⬜️ Skipped (Inspect) Feb 3, 2025 1:00pm

@mrousavy mrousavy changed the title chore: Add Map in structs test (Record<string, T> inside a plain struct/object) fix: Return JMap instead of JHashMap in typed map converter (Record<string, T>) Feb 3, 2025
@mrousavy mrousavy merged commit e5925a3 into main Feb 3, 2025
15 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant