Possible leak in org.openjdk.jmh.util.Version
Artem Prigoda
arteamon at gmail.com
Wed Dec 24 12:58:33 UTC 2014
Hi, Aleksey
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?
Artem
More information about the jmh-dev
mailing list