Bug #179

Input stream is not closed explicitly.

Added by progs.backup over 4 years ago. Updated over 4 years ago.

Status:ClosedStart date:12/11/2013
Priority:NormalDue date:
Assignee:achristian% Done:

100%

Category:-Spent time:0.50 h
Target version:-

Description

Input stream has been finalized or forced closed without being explicitly closed; stream instantiation reported in following stack trace
java.lang.Throwable
...
    at java.lang.Class.getResourceAsStream(Class.java:2032)
    at de.root1.rxtxrebundled.LibLoader.extractLib(LibLoader.java:124)
    at de.root1.rxtxrebundled.LibLoader.<clinit>(LibLoader.java:72)
    at gnu.io.RXTXCommDriver.<clinit>(RXTXCommDriver.java:47)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:171)
...

Above error is generated when the library is used with application server.
In the method extractLib from LibLoader class the stream variable

resourceAsStream
is not closed.
Please can you fix this, by closing the stream.
Thanks

Associated revisions

Revision 28
Added by achristian over 4 years ago

fixed issue #179

History

#1 Updated by achristian over 4 years ago

  • Status changed from New to Assigned

#2 Updated by achristian over 4 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

#3 Updated by achristian over 4 years ago

Version 2.1-7r2-3 contains the bugfix

Also available in: Atom PDF