You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When deploying a verticle using an URLClassLoader (when loading classes from a JAR file), using the vertx.fileSystem() to read files/directories will close the opened resources related to the JAR file once the operation completes. For example, if an InputStream is opened to read a file from the JAR file, the InputStream will be closed as well, even if it is still in use.
Version
4.5.1
Context
When deploying a verticle using an URLClassLoader (when loading classes from a JAR file), using the vertx.fileSystem() to read files/directories will close the opened resources related to the JAR file once the operation completes. For example, if an InputStream is opened to read a file from the JAR file, the InputStream will be closed as well, even if it is still in use.
There is no problem with version 4.4.6 of Vertx.
Do you have a reproducer?
https://github.com/adrien-aubert-drovio/vertx-url-class-loader-read-file/tree/main
Extra
Tested on MacOs with Java 11 and 17.
The text was updated successfully, but these errors were encountered: