mirror of
https://github.com/sbt/sbt.git
synced 2026-09-03 08:34:34 +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