You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Miguel A Paraz <ma...@free.net.ph> on 2002/06/10 15:00:48 UTC

jikes and xxxSoapBindingStub.java output from WSDL2Java

Hi,
jikes complains about:

Issued 1 semantic warning compiling "com/mparaz/MyAxisSoapBindingStub.java":

    33.         catch(java.lang.Exception t) {
                      <------------------->
*** Caution: This try block cannot throw a "checked exception" (JLS section 14.7) that can be caught here. You may have intended to catch a RuntimeException instead of an Exception.

from this bit of code:

        try {
            if (service == null) {
                super.service = new org.apache.axis.client.Service();
            } else {
                super.service = service;
            }
        }
        catch(java.lang.Exception t) {
            throw org.apache.axis.AxisFault.makeFault(t);
        }

and changing it to:

        catch(java.lang.RuntimeException t) {

Takes it away.

Is this a problem?


-- 
Miguel A Paraz             <http://mparaz.com>	Mobile: +63-916-423-7922
Imperium Technology, Inc.  <ma...@imperium.ph>	Office: +63-2-812-3155