butek       02/03/27 10:36:48

  Modified:    java     TODO.txt
               java/src/javax/xml/rpc JAXRPCException.java
                        ServiceException.java
               java/test/wsdl/getPort GetPortTestCase.java
  Log:
  ServiceException/JAXRPCException.getCause changed to
  getLinkedCause.  I've kept the old stuff around and deprecated it.
  
  Revision  Changes    Path
  1.31      +1 -0      xml-axis/java/TODO.txt
  
  Index: TODO.txt
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/TODO.txt,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- TODO.txt  27 Mar 2002 18:17:43 -0000      1.30
  +++ TODO.txt  27 Mar 2002 18:36:47 -0000      1.31
  @@ -23,6 +23,7 @@
   ! <> Implement ServiceFactory.createService methods.
   ! <> Remove standard property constants from org.apache.axis.client.Call after 
beta2.
   ! <> Remove ParameterMode.PARAM_MODE_* constants after beta2.
  +! <> Remove ServiceException/JAXRPCException getCause methods after beta2.
   
   SOAP 1.2 SUPPORT
   ----------------
  
  
  
  1.8       +7 -0      xml-axis/java/src/javax/xml/rpc/JAXRPCException.java
  
  Index: JAXRPCException.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/javax/xml/rpc/JAXRPCException.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- JAXRPCException.java      5 Feb 2002 16:22:39 -0000       1.7
  +++ JAXRPCException.java      27 Mar 2002 18:36:47 -0000      1.8
  @@ -104,6 +104,13 @@
        * 
        * @return exception or null if none.
        */ 
  +    public Throwable getLinkedCause() {
  +        return cause;
  +    }
  +
  +    /**
  +     * @deprecated Use getLinkedCause instead.
  +     */
       public Throwable getCause() {
           return cause;
       }
  
  
  
  1.2       +7 -0      xml-axis/java/src/javax/xml/rpc/ServiceException.java
  
  Index: ServiceException.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/javax/xml/rpc/ServiceException.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ServiceException.java     5 Feb 2002 16:22:39 -0000       1.1
  +++ ServiceException.java     27 Mar 2002 18:36:47 -0000      1.2
  @@ -104,6 +104,13 @@
        * 
        * @return exception or null if none.
        */ 
  +    public Throwable getLinkedCause() {
  +        return cause;
  +    }
  +
  +    /**
  +     * @deprecated Use getLinkedCause instead.
  +     */
       public Throwable getCause() {
           return cause;
       }
  
  
  
  1.2       +8 -4      xml-axis/java/test/wsdl/getPort/GetPortTestCase.java
  
  Index: GetPortTestCase.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/wsdl/getPort/GetPortTestCase.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- GetPortTestCase.java      21 Mar 2002 14:30:26 -0000      1.1
  +++ GetPortTestCase.java      27 Mar 2002 18:36:48 -0000      1.2
  @@ -16,7 +16,8 @@
               fail("empty.getPort(null) should have failed.");
           }
           catch (ServiceException se) {
  -            assertTrue("Wrong exception!  " + se.getCause(), se.getCause() == null);
  +            assertTrue("Wrong exception!  " + se.getLinkedCause(),
  +                    se.getLinkedCause() == null);
           }
       } // testEmptyService
   
  @@ -35,7 +36,8 @@
               fail("service.getPort(Vector.class) should have failed.");
           }
           catch (ServiceException se) {
  -            assertTrue("Wrong exception!  " + se.getCause(), se.getCause() == null);
  +            assertTrue("Wrong exception!  " + se.getLinkedCause(),
  +                    se.getLinkedCause() == null);
           }
       } // testNormalService
   
  @@ -53,7 +55,8 @@
               fail("service.getPort(Three.class) should have failed.");
           }
           catch (ServiceException se) {
  -            assertTrue("Wrong exception!  " + se.getCause(), se.getCause() == null);
  +            assertTrue("Wrong exception!  " + se.getLinkedCause(),
  +                    se.getLinkedCause() == null);
           }
       } // testDoublePortService1
   
  @@ -71,7 +74,8 @@
               fail("service.getPort(Three.class) should have failed.");
           }
           catch (ServiceException se) {
  -            assertTrue("Wrong exception!  " + se.getCause(), se.getCause() == null);
  +            assertTrue("Wrong exception!  " + se.getLinkedCause(),
  +                    se.getLinkedCause() == null);
           }
       } // testDoublePortService2
   
  
  
  


Reply via email to