sbt/util-cache
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
..
src [2.x] fix: Drop net.openhft farmNa, use MurmurHash3 in HashUtil 2026-05-28 08:40:11 -04:00
NOTICE Adds overrides for File-based caching 2017-04-17 10:24:54 -04:00