Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
-
Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
-
None
Description
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)
}
=============
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
catch (Exception e) {}
}
..
}