Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make generated case classes final by default.
- Loading branch information
1 parent
bd3c24b
commit 0e869e9
Showing
2 changed files
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0e869e9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We just upgraded to 3.2.0 and this change produces a compiler warning:
Is this expected by default? Thanks
0e869e9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dmarwick Setting default to true was a mistake because of the errors in the default code generator. It's set to false in 3.2.1. See #1709
For now, you'll have to either (1) not generate case classes inside the table trait or (2) override caseClassFinal to default to false.
0e869e9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @stewSquared! We overrode it to false for now and will plan to revert the override in 3.2.1+.