Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2096,9 +2096,10 @@ private static void validatePostIterationState(
// (19.03.2019 TM)NOTE: added "|| iterator.hasNext()" check
if(address != elementsBinaryBound || iterator.hasNext())
{
final long iteratedCount = elementCount - (elementsBinaryBound - address) / entryLength;
throw new BinaryPersistenceException(
"Inconsistent element count: specified " + elementCount
+ " vs. iterated " + elementsBinaryBound / entryLength
+ " vs. iterated " + (iterator.hasNext() ? "more than " + iteratedCount : iteratedCount)
);
}
}
Expand Down
Loading