Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-5521

Close resource - potential resource leak

XMLWordPrintable

      o.w.c.j.r.BootableJar uses Filestream without closing it properly.

      o.j.a.c.p.XmlConfigurationPersister uses XMLStreamReader without finally closing it and doubles FileInputStream closing.

      ArchiveHandler uses JarFile without closing it properly. SimpleTable uses Formatter without closing it properly.

      Fix: Use try-with-resources or "safeClose" util, depending on the current Exception Handling situation.

              jdenise@redhat.com Jean Francois Denise
              xf01213 Boris Unckel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: