sbt/main-command/src
Brian Hotopp 7ec0dbc4eb [2.x] fix: Drop net.openhft farmNa, use MurmurHash3 in HashUtil
`HashUtil.farmHash` and `BootServerSocket.socketLocation` called
`LongHashFunction.farmNa()` from zero-allocation-hashing, whose impl
uses `sun.misc.Unsafe` and triggers the terminally-deprecated warning
on JDK 23+. Replaced with two `scala.util.hashing.MurmurHash3` calls
composed into a 64-bit Long. Matches @eed3si9n's suggestion in the
issue thread.

The `farmHash` method name and `"farm64-"` cache-string prefix are
kept for source compatibility. Existing on-disk caches keyed on
`farm64-<hex>` see a one-time cold rebuild after upgrade.

Fixes sbt/sbt#8073.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-28 08:40:11 -04:00
..
main [2.x] fix: Drop net.openhft farmNa, use MurmurHash3 in HashUtil 2026-05-28 08:40:11 -04:00
test/scala/sbt [2.x] refactor: Use scala.util.Using.resource instead of try-finally (#9230) 2026-05-16 05:51:07 -04:00