Skip to content

Refactor: extract macro runtime classes to shared files#614

Merged
TimvdLippe merged 1 commit into
mockito:release/2.xfrom
jozic:extact-runtime-from-verify-and-when-macro
Feb 20, 2026
Merged

Refactor: extract macro runtime classes to shared files#614
TimvdLippe merged 1 commit into
mockito:release/2.xfrom
jozic:extact-runtime-from-verify-and-when-macro

Conversation

@jozic

@jozic jozic commented Feb 20, 2026

Copy link
Copy Markdown
Contributor

Another baby step toward Scala 3

Move runtime classes out of macro-only files into shared *Runtime files, preparing for Scala 2/3 macro source split.
*Runtime classes have no macro code thus can be reused by any Scala version. WhenMacro/VerifyMacro retain all macro code, type aliases and val re-exports for backward compatibility. Quasiquotes updated to reference *Runtime types directly.

@jozic jozic marked this pull request as ready for review February 20, 2026 03:07
@jozic

jozic commented Feb 20, 2026

Copy link
Copy Markdown
Contributor Author

@TimvdLippe next step is ready for your review. Thanks!

@TimvdLippe TimvdLippe merged commit ca0c3e0 into mockito:release/2.x Feb 20, 2026
5 checks passed
@jozic jozic deleted the extact-runtime-from-verify-and-when-macro branch February 20, 2026 11:00
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