summaryrefslogtreecommitdiffstats
path: root/json/src/test
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2011-07-18 17:13:39 -0700
committerElliott Hughes <enh@google.com>2011-07-18 18:26:07 -0700
commitb1f55cb6f95928be969a8fe5c7447e13f14d0a68 (patch)
treeb594b618a70999a4fc75b7be0bf188c7a7655711 /json/src/test
parent9cec6d7927e04c72fd5e1d588b1bf9cf85b0f9e3 (diff)
downloadlibcore-b1f55cb6f95928be969a8fe5c7447e13f14d0a68.zip
libcore-b1f55cb6f95928be969a8fe5c7447e13f14d0a68.tar.gz
libcore-b1f55cb6f95928be969a8fe5c7447e13f14d0a68.tar.bz2
Fix FileInputStream/FileOutputStream on unowned FileDescriptors.
We were relying on the fd being invalid to prevent us from performing activity on a closed stream. Unfortunately, this didn't work with our clever scheme to avoid having to treat the two cases separately. Go back to a simple scheme with one FileDescriptor and a boolean that tells us whether or not we should close it. If we don't close it, we switch it out for an invalid FileDescriptor so we won't continue to act on the unowned FileDescriptor. Bug: 4361076 Change-Id: I1851926fd2847ea63d91a8e0680a7430ecb16453
Diffstat (limited to 'json/src/test')
0 files changed, 0 insertions, 0 deletions