Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

调用doRead()会关闭inputStream,即使autoCloseStream为false #1840

Closed
goxxdev opened this issue Mar 28, 2021 · 2 comments
Closed

调用doRead()会关闭inputStream,即使autoCloseStream为false #1840

goxxdev opened this issue Mar 28, 2021 · 2 comments
Assignees
Labels
bug Something isn't working developing This feature will be added in future releases development completed Development completed, waiting for release

Comments

@goxxdev
Copy link

goxxdev commented Mar 28, 2021

触发场景描述
调用doRead()会关闭inputStream,即使autoCloseStream为false

触发Bug的代码

        EasyExcel.read(inputStream, eClass, listener)
                .autoCloseStream(false)
                .headRowNumber(listener.getHeadRowIndex() + 1)
                .sheet(sheetName)
                .doRead();

提示的异常或者没有达到的效果
定位到 com.alibaba.excel.util.FileUtils#writeToFile 时关闭的

@goxxdev goxxdev added the bug Something isn't working label Mar 28, 2021
@zhuangjiaju zhuangjiaju added the developing This feature will be added in future releases label Apr 1, 2021
@zhuangjiaju
Copy link
Collaborator

zhuangjiaju commented Apr 1, 2021

后续会修改

@zhuangjiaju
Copy link
Collaborator

已经在3.0.0-beta1 版本修复,beta版本会在一个月内升级成正式版。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working developing This feature will be added in future releases development completed Development completed, waiting for release
Projects
None yet
Development

No branches or pull requests

2 participants