Skip to content

Commit e2da3ca

Browse files
committed
fix(mima): Add default impl for methodCodeHashSignatures
Fixes MiMa binary compatibility failure by providing a concrete default implementation for methodCodeHashSignatures in TestModule. Abstract methods in public traits are binary breaking changes. The default returns an empty Map, maintaining backward compatibility.
1 parent 50df23a commit e2da3ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/javalib/src/mill/javalib/TestModule.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ trait TestModule
4242
* Method-level code hash signatures for the module under test.
4343
* Used by [[testQuick]] for fine-grained change detection.
4444
*/
45-
def methodCodeHashSignatures: T[Map[String, Int]]
45+
def methodCodeHashSignatures: T[Map[String, Int]] = Task { Map.empty[String, Int] }
4646

4747
/**
4848
* The test framework to use to discover and run run tests.

0 commit comments

Comments
 (0)