santiagopg    2003/09/09 08:44:49

  Modified:    java/src/org/apache/xalan/xsltc/compiler XSLTC.java
               java/src/org/apache/xalan/xsltc/trax Util.java
  Log:
  Moved return statements outside of finally block. The compiler correctly 
points out that when an exception is not caught by a catch, the finally block 
cannot return normally.
  
  Revision  Changes    Path
  1.54      +2 -2      
xml-xalan/java/src/org/apache/xalan/xsltc/compiler/XSLTC.java
  
  Index: XSLTC.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/XSLTC.java,v
  retrieving revision 1.53
  retrieving revision 1.54
  diff -u -r1.53 -r1.54
  --- XSLTC.java        1 Aug 2003 00:53:03 -0000       1.53
  +++ XSLTC.java        9 Sep 2003 15:44:48 -0000       1.54
  @@ -378,8 +378,8 @@
        }
        finally {
            _reader = null; // reset this here to be sure it is not re-used
  -         return !_parser.errorsFound();
        }
  +     return !_parser.errorsFound();
       }
   
       /**
  
  
  
  1.6       +2 -4      xml-xalan/java/src/org/apache/xalan/xsltc/trax/Util.java
  
  Index: Util.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/trax/Util.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Util.java 30 Jan 2003 18:46:14 -0000      1.5
  +++ Util.java 9 Sep 2003 15:44:48 -0000       1.6
  @@ -160,9 +160,7 @@
            ErrorMsg err = new ErrorMsg(ErrorMsg.FILE_ACCESS_ERR, systemId);
            throw new TransformerConfigurationException(err.toString());
        }
  -     finally {
  -         return input;
  -     }
  +     return input;
       }
   
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to