You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by an...@apache.org on 2001/12/14 00:31:57 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/parsers StandardParserConfiguration.java

andyc       01/12/13 15:31:57

  Modified:    java/docs releases.xml
               java/src/org/apache/xerces/parsers
                        StandardParserConfiguration.java
  Log:
  No longer wrapping RuntimeException in the parse method
  so that application errors get passed out correctly.
  Bug:	5076
  
  Revision  Changes    Path
  1.88      +8 -1      xml-xerces/java/docs/releases.xml
  
  Index: releases.xml
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/docs/releases.xml,v
  retrieving revision 1.87
  retrieving revision 1.88
  diff -u -r1.87 -r1.88
  --- releases.xml	2001/11/05 07:30:44	1.87
  +++ releases.xml	2001/12/13 23:31:56	1.88
  @@ -1,5 +1,5 @@
   <?xml version='1.0' encoding='UTF-8'?>
  -<!-- $Id: releases.xml,v 1.87 2001/11/05 07:30:44 andyc Exp $ -->
  +<!-- $Id: releases.xml,v 1.88 2001/12/13 23:31:56 andyc Exp $ -->
   <!DOCTYPE releases SYSTEM 'dtd/releases.dtd'>
   <releases>
    <release version='Xerces 2.0.0 (NOT YET RELEASED)'>
  @@ -7,6 +7,13 @@
      This is primarily a bug fix release.
     </desc>
     <changes>
  +   <fix>
  +    <note>
  +     The parser no longer wraps RuntimeException with XNIException
  +     in the parse method.
  +    </note>
  +    <submitter name='Andy Clark'/>
  +   </fix>
      <fix>
       <note>
        Added missing default attribute values in the DOM and fixed 
  
  
  
  1.9       +11 -1     xml-xerces/java/src/org/apache/xerces/parsers/StandardParserConfiguration.java
  
  Index: StandardParserConfiguration.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/parsers/StandardParserConfiguration.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- StandardParserConfiguration.java	2001/12/13 22:59:21	1.8
  +++ StandardParserConfiguration.java	2001/12/13 23:31:57	1.9
  @@ -121,7 +121,7 @@
    * @author Arnaud  Le Hors, IBM
    * @author Andy Clark, IBM
    *
  - * @version $Id: StandardParserConfiguration.java,v 1.8 2001/12/13 22:59:21 elena Exp $
  + * @version $Id: StandardParserConfiguration.java,v 1.9 2001/12/13 23:31:57 andyc Exp $
    */
   public class StandardParserConfiguration
       extends BasicParserConfiguration 
  @@ -494,6 +494,11 @@
                       ex.printStackTrace();
                   throw ex;
               } 
  +            catch (RuntimeException ex) {
  +                if (PRINT_EXCEPTION_STACK_TRACE)
  +                    ex.printStackTrace();
  +                throw ex;
  +            }
               catch (Exception ex) {
                   if (PRINT_EXCEPTION_STACK_TRACE)
                       ex.printStackTrace();
  @@ -514,6 +519,11 @@
                   ex.printStackTrace();
               throw ex;
           } 
  +        catch (RuntimeException ex) {
  +            if (PRINT_EXCEPTION_STACK_TRACE)
  +                ex.printStackTrace();
  +            throw ex;
  +        }
           catch (Exception ex) {
               if (PRINT_EXCEPTION_STACK_TRACE)
                   ex.printStackTrace();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org