commit | 119d05942e760b078fd8ac1ea133918ec15b8dbe | [log] [tgz] |
---|---|---|
author | Yi Kong <yikong@google.com> | Wed Feb 03 15:30:44 2016 +0800 |
committer | Yi Kong <yikong@google.com> | Wed Feb 03 15:36:02 2016 +0800 |
tree | 2db136e75c7d508d0f115c539c0df683ee438498 | |
parent | 40dffe73d7414753e592e186df8515911da913c3 [diff] |
Fix JarFileTest#test_getInputStreamLjava_util_jar_JarEntry_subtest0 This failure is due to OpenJDK has different behaviour when dealing with JarEntry in getInputStream. If argument 'entry' is of type JarEntry, it reloads it as JarFileEntry using its file name. Therefore setting size on 'entry' would be ignored. We initialize entry as JarFileEntry instead, so that getInputStream sees our change to JarEntry's size. Bug: 25996922 Change-Id: I4976db19c4b5ddb5802a3e52af7dc9a9df85aaa1