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 — Improve support for Kotlin Data Classes by filiphr · Pull Request #3978 · mapstruct/mapstruct

Conversation

@filiphr

@filiphr filiphr commented Jan 29, 2026

Copy link
Copy Markdown
Member
  • Properly handle single field data classes
  • Properly handle multi constructor data classes
  • Properly handle all defaults constructor data classes

This resolves different Kotlin related issues:

  • Fixes Not using kotlin primary constructor #2577 - Not using Kotlin data primary constructor
  • Fixes Kotlin Data class with all nullable fields is not mapped to the target class fields #3031 - Kotlin Data class with all nullable fields is not mapped to the target class fields
  • Fixes Kotlin: problems with data classes #2281 - Kotlin: problems with data classes

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

adanski reacted with hooray emoji jord1e reacted with heart emoji
All reactions
  • 🎉 1 reaction
  • ❤️ 1 reaction
filiphr added 2 commits January 29, 2026 10:28
@filiphr
Improve support for Kotlin Data Classes
15c80b5
* Properly handle single field data classes
* Properly handle multi constructor data classes
* Properly handle all defaults constructor data classes
@filiphr
Add docs
fa9cc42
@filiphr
filiphr merged commit d300664 into mapstruct:main Jan 29, 2026
4 of 5 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@filiphr
filiphr deleted the kotlin-data-classes branch January 29, 2026 11:30
@filiphr filiphr mentioned this pull request Jan 29, 2026
Instantiate Kotlin data classes using the _primary_ constructor #2933
Closed
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Kotlin Data class with all nullable fields is not mapped to the target class fields Not using kotlin primary constructor Kotlin: problems with data classes

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@filiphr
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402520 — 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.