getAlignmentSpan() / getAlignmentEnd() only calculate their values once, via initializeAlignmentBoundaries(). If the underlying data changes, callers will see stale span and end values.
My preferred solution would be to make CramCompressionRecord immutable.
Noticed in #1284 but the problem existed prior to that.
Subject of the issue
getAlignmentSpan()
/getAlignmentEnd()
only calculate their values once, viainitializeAlignmentBoundaries()
. If the underlying data changes, callers will see stale span and end values.My preferred solution would be to make CramCompressionRecord immutable.
Noticed in #1284 but the problem existed prior to that.