Strange “Resource leak: stream is never closed” with try-with-resources if Exception is thrown in a loop

天大地大妈咪最大 提交于 2019-12-03 23:33:50
ziesemer

This appears to be a known bug in Eclipse: [compiler][resource] Bad resource leak problem on return inside while loop (resource passed on in finally block.

I just got bit by this myself, and have added my vote on the tracker.

Update: The above bug has been resolved in 4.5 M7. This will be included in the final release of Eclipse 4.5 ("Mars") - which looks on track to be released 2015-06-24.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!