An incomplete fix for the NPE bugs in IdentityConstraint.java
-------------------------------------------------------------

                 Key: LUCENE-3809
                 URL: https://issues.apache.org/jira/browse/LUCENE-3809
             Project: Lucene - Java
          Issue Type: Bug
            Reporter: Guangtai Liang


The fix revision 424429 was aimed to remove an resource leak bug on the  
SocketChannelobject   "channel"  in the method "findJarServiceProvider" of the 
file "/xerces/java/trunk/src/org/apache/html/dom/ObjectFactory.java" , but it 
is incomplete. 

When the statements at lines 1142-1153 or line 1162 throw any eception, the 
object "channel" can not be closed as expected. The best way to close such 
resource object is that putting such close operations in a "finally" block.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to