mirror of
https://github.com/sbt/sbt.git
synced 2026-09-04 00:41:32 +02:00
Add circular reference detection to StackTrace.trimmedLines using an IdentityHashMap-backed Set, similar to how the JDK handles this in Throwable.printStackTrace(). When a circular reference is detected, the method now appends a [CIRCULAR REFERENCE: ...] message instead of recursing infinitely. Fixes #7509