Skip to content

JAVA-4966 : Fix Macro for sealed trait #1122

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

Merged
merged 1 commit into from
Jun 6, 2023
Merged

Conversation

kistria
Copy link
Contributor

@kistria kistria commented May 22, 2023

https://jira.mongodb.org/browse/JAVA-4966

If the sealed trait and the Macro are not defined is the same module, we have the following error No known subclasses of the sealed trait
Add a val _ to make sure that isCaseClass returns the correct value. This "hack" is described in scala/bug#7755

It's complicated to test that, because it requires having multi modules. But this change solved the issue in my project.

@rozza rozza self-requested a review June 6, 2023 09:37
Copy link
Member

@rozza rozza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix @kistria

@rozza rozza merged commit 84fddb0 into mongodb:master Jun 6, 2023
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.

2 participants