Possible leak in org.openjdk.jmh.util.Version
Aleksey Shipilev
aleksey.shipilev at oracle.com
Thu Dec 25 14:18:27 UTC 2014
Hi,
On 24.12.2014 15:58, Artem Prigoda wrote:
> I don't know if this a convenient question in this mailing list, but during
> reading the JMH source code my eye caught one little problem.
>
> In the class Version
> http://hg.openjdk.java.net/code-tools/jmh/file/21d5793de4c0/jmh-core/src/main/java/org/openjdk/jmh/util/Version.java
> an input stream is being opened for reading the file jmh.properties. This
> stream is then passed to method Properties#load. But this method doesn't
> close the stream, so the stream is remained opened. Shouldn't it be closed
> manually or do I miss something?
That's a bug, fixed:
https://bugs.openjdk.java.net/browse/CODETOOLS-7901230
Thanks,
-Aleksey.
More information about the jmh-dev
mailing list