Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Issue 15337005: Ensure to close file-stream on all errors. (Closed)

Created:
7 years, 7 months ago by Anders Johnsen
Modified:
7 years, 7 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Ensure to close file-stream on all errors. BUG= Committed: https://code.google.com/p/dart/source/detail?r=22932

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -6 lines) Patch
M sdk/lib/io/file_impl.dart View 3 chunks +13 lines, -6 lines 2 comments Download

Messages

Total messages: 5 (0 generated)
Anders Johnsen
7 years, 7 months ago (2013-05-21 11:10:05 UTC) #1
Anders Johnsen
TBR
7 years, 7 months ago (2013-05-21 11:11:44 UTC) #2
Anders Johnsen
Committed patchset #1 manually as r22932 (presubmit successful).
7 years, 7 months ago (2013-05-21 11:11:57 UTC) #3
kustermann
lgtm https://codereview.chromium.org/15337005/diff/1/sdk/lib/io/file_impl.dart File sdk/lib/io/file_impl.dart (right): https://codereview.chromium.org/15337005/diff/1/sdk/lib/io/file_impl.dart#newcode81 sdk/lib/io/file_impl.dart:81: _closeFile().then((_) { _controller.close(); }); I don't know if ...
7 years, 7 months ago (2013-05-21 11:23:57 UTC) #4
Anders Johnsen
7 years, 7 months ago (2013-05-21 11:37:27 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/15337005/diff/1/sdk/lib/io/file_impl.dart
File sdk/lib/io/file_impl.dart (right):

https://codereview.chromium.org/15337005/diff/1/sdk/lib/io/file_impl.dart#new...
sdk/lib/io/file_impl.dart:81: _closeFile().then((_) { _controller.close(); });
On 2013/05/21 11:23:57, kustermann wrote:
> I don't know if the Future returned by '_closeFile()' can complete with an
> error?

I'm quite sure it can't. Can't come to think of any scenario at least.

Powered by Google App Engine
This is Rietveld 408576698