Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-2598

unhandled exceptions

    XMLWordPrintableJSON

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)

      { ; // 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) {}
      }
      ..
      }

      Attachments

        Activity

          People

            shathaway Steven J. Hathaway
            songwang songwanging
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: