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 @@ -1481,7 +1481,10 @@ public String get(StringBytes b) {

@Override
public void close() throws IOException {
if (daos != null) {
// marshal() already flushes in its own finally block, so skip the redundant flush.
// Flushing again after a marshal failure would re-throw the same exception from the broken
// stream, causing "Self-suppression not permitted" in the caller's try-with-resources.
if (daos != null && !alreadyMarshalled) {
daos.flushBuffer();
}
}
Expand Down
Loading