[ 
https://issues.apache.org/jira/browse/CXF-7595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Kieselhorst resolved CXF-7595.
-------------------------------------
    Resolution: Fixed

Thanks for the bug report. I've added a finally block. Please test with 
3.2.2-SNAPSHOT.

> Swagger2Feature - inputstream of stream swagger.properties after loading not 
> closed
> -----------------------------------------------------------------------------------
>
>                 Key: CXF-7595
>                 URL: https://issues.apache.org/jira/browse/CXF-7595
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.2.1
>            Reporter: Olivier Paquet
>            Assignee: Dennis Kieselhorst
>             Fix For: 3.2.2
>
>
> If we put a swagger.properties into our classpath it's loaded by the 
> Swagger2Feature.getSwaggerProperties()
> {code}
>  protected Properties getSwaggerProperties(Bus bus) {
>         InputStream is = 
> ResourceUtils.getClasspathResourceStream(propertiesLocation, 
>                                                  
> AbstractSwaggerFeature.class, 
>                                                  bus);
>         Properties props = null;
>         if (is != null) {
>             props = new Properties();
>             try {
>                 props.load(is);
>             } catch (IOException ex) {
>                 props = null;
>             }
>         }
>         return props;
>     }
> {code}
> But the inputstream is not closed in this method, thats preventing us from 
> using a hotdeployment in our jboss because the stream on swagger.properties 
> is still open.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to