Skip to content

Support method signatures to distinguish overloads in filters - #985

Merged
lrytz merged 1 commit into
scala-garden:mainfrom
lrytz:keep-signature
Sep 18, 2026
Merged

lrytz merged 1 commit into
scala-garden:mainfrom
lrytz:keep-signature

Conversation

@lrytz

@lrytz lrytz commented Sep 16, 2026 •

Copy link
Copy Markdown
Collaborator

A filter or mimaBinaryApi entry naming a method, such as foo.C.f, applies to every overload of f. A keep reaching too many overloads can put methods under mima's watch that were never part of the API (pekko hit this).l

A name can now include the signature, foo.C.f(Int)Int. Reports suggest that form. A name without a signature still covers every overload, so existing filters are unaffected.

@lrytz
lrytz force-pushed the keep-signature branch 2 times, most recently from cd7955a to a230a2f Compare September 17, 2026 12:55
@lrytz lrytz changed the title Keep one overload, not every method of that name Let a filter or keep entry name a single overload Sep 17, 2026
@lrytz
lrytz force-pushed the keep-signature branch 2 times, most recently from ad6cbf3 to c8b8f56 Compare September 17, 2026 19:57
A filter or `mimaBinaryApi` entry naming a method, such as `foo.C.f`, applies to every
overload of `f`. A keep entry then put overloads back under mima's watch that were never
part of the API, and reported their long-ago removal; pekko hit this on its first entry.

A name can now include the signature the report prints, `foo.C.f(Int)Int`, and then names
that one method. Reports suggest that form. A name without a signature still covers every
overload, so existing filters are unaffected.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@lrytz
lrytz force-pushed the keep-signature branch 2 times, most recently from b0295d3 to 5c3cf5a Compare September 18, 2026 06:01
@lrytz lrytz changed the title Let a filter or keep entry name a single overload Support method signatures to distinguish overloads in filters Sep 18, 2026
@lrytz
lrytz merged commit 68dfcdf into scala-garden:main Sep 18, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant