Skip to content

SaxUtils leaks file handles, locks file on Windows [SWS-783] #768

@gregturn

Description

@gregturn

Kristian Rosenvold opened SWS-783 and commented

The method "createInputSource" in SaxUtils leaks the input stream in

InputSource inputSource = new InputSource(resource.getInputStream());

While this might be considered a small nuisance, it becomes a PITA on Windows, because the "SimpleXsdSchema" uses this method and therefore locks the "xsd" file in the file system, which is a pain when running "mvn clean install" because clean fails because the XSD/WSDL file is locked.

There are basically 4 non-test usages of this method that need to be reworked to avoid leaking file handles.


Affects: 2.1 GA

Attachments:

Metadata

Metadata

Assignees

Labels

status: invalidAn issue that we don't feel is valid

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions