songwanging created XALANJ-2598:
-----------------------------------

             Summary: unhandled exceptions
                 Key: XALANJ-2598
                 URL: https://issues.apache.org/jira/browse/XALANJ-2598
             Project: XalanJ2
          Issue Type: Improvement
      Security Level: No security risk; visible to anyone (Ordinary problems in 
Xalan projects.  Anybody can view the issue.)
            Reporter: songwanging
            Assignee: Steven J. Hathaway
            Priority: Minor


In method compileExtension() of class  
Compiler(\src\org\apache\xpath\compiler\Compiler.java) 

The catch block catch (WrongNumberArgsException e) performs no actions to 
handle its expected exception, which makes itself useless.

To fix this bug, we should add more code into the catch block to handle this 
exception, or directly delete this catch block.
compileExtension(){
...
try{
…
} catch (WrongNumberArgsException wnae)
    {
      ;  // should never happen
    }
}
=============
In method getDTM() of class refDTMManagerDefault 
(src\org\apache\xml\dtm\refDTMManagerDefault.java)

The catch block catch (Exception e) performs no actions to handle its expected 
exception, which makes itself useless.

To fix this bug, we should add more code into the catch block to handle this 
exception, or directly delete this catch block.
getDTM(){
...
   try {
 reader.setProperty("http://xml.org/sax/properties/lexical-handler";, null);
            }
  catch (Exception e) {}
          }
..
}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@xalan.apache.org
For additional commands, e-mail: dev-h...@xalan.apache.org

Reply via email to