cid#1371366 Java "Resource leak on an exceptional path" ?

Caolán McNamara caolanm at redhat.com
Fri Dec 8 14:43:27 UTC 2017


We've three outstanding low priority java warnings in coverity

coverity#1371372 Resource leak on an exceptional path
coverity#1371366 Resource leak on an exceptional path
coverity#1371376 Resource leak on an exceptional path 

which are all (apparently) due to close not called on URLClassLoader if
an exception occurs

https://gerrit.libreoffice.org/#/c/46037/ would probably silence them,
but URLClassLoader.close is only in >= java 7 so presumably applying
that would break ability to run scripting stuff in 1.5 which is what we
use with javac -source/-target (except if building with java 9 which
only supports >= 1.6 for -source/-target)

Any thoughts here, I'm not particularly concerned with the java
warnings, but they're basically the only ones not triaged at this point
so I'd like to close them out one way or the other. Setting them to
Intentional+Ignore is an option.


More information about the LibreOffice mailing list