axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinth...@apache.org
Subject svn commit: r293506 - /webservices/axis2/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/builder/StAXBuilder.java
Date Tue, 04 Oct 2005 03:39:33 GMT
Author: chinthaka
Date: Mon Oct  3 20:39:27 2005
New Revision: 293506

URL: http://svn.apache.org/viewcvs?rev=293506&view=rev
Log:
changing the exception thrown , in accessing the parser when it has already being accessed
without caching on, to IllegalStateException.

Modified:
    webservices/axis2/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/builder/StAXBuilder.java

Modified: webservices/axis2/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/builder/StAXBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/builder/StAXBuilder.java?rev=293506&r1=293505&r2=293506&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/builder/StAXBuilder.java
(original)
+++ webservices/axis2/trunk/java/modules/xml/src/org/apache/axis2/om/impl/llom/builder/StAXBuilder.java
Mon Oct  3 20:39:27 2005
@@ -345,14 +345,14 @@
      */
     public Object getParser() {
         if (parserAccessed){
-            throw new UnsupportedOperationException(
+            throw new IllegalStateException(
                     "Parser already accessed!");  
         }
         if (!cache) {
             parserAccessed = true;
             return parser;
         } else {
-            throw new UnsupportedOperationException(
+            throw new IllegalStateException(
                     "cache must be switched off to access the parser");
         }
     }



Mime
View raw message