[jboss-jira] [JBoss JIRA] (WFWIP-129) SmallRye Metrics - JmxRegistrar - InputStream not closed
Jeff Mesnil (Jira)
issues at jboss.org
Tue Nov 13 10:25:00 EST 2018
[ https://issues.jboss.org/browse/WFWIP-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeff Mesnil resolved WFWIP-129.
-------------------------------
Resolution: Done
issue fixed in smallrye-metrics 1.1.2 by https://github.com/smallrye/smallrye-metrics/pull/18
> SmallRye Metrics - JmxRegistrar - InputStream not closed
> ---------------------------------------------------------
>
> Key: WFWIP-129
> URL: https://issues.jboss.org/browse/WFWIP-129
> Project: WildFly WIP
> Issue Type: Bug
> Components: MP Metrics
> Reporter: Rostislav Svoboda
> Assignee: Jeff Mesnil
> Priority: Major
>
> https://github.com/smallrye/smallrye-metrics/blob/master/implementation/src/main/java/io/smallrye/metrics/setup/JmxRegistrar.java#L58
> I think InputStream {{propertiesResource}} needs to be explicitly closed.
> https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html#load-java.io.InputStream- says: The specified stream remains open after this method returns.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list