Olivier Paquet created CXF-7595:
-----------------------------------

             Summary: Swagger2Feature - 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


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