You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org> on 2004/10/25 17:43:45 UTC

[jira] Resolved: (AXIS-1554) attempting to use incompatible return type - method getCause()

     [ http://issues.apache.org/jira/browse/AXIS-1554?page=history ]
     
Davanum Srinivas resolved AXIS-1554:
------------------------------------

    Resolution: Fixed

Closing the bug.

-- dims

> attempting to use incompatible return type - method getCause()
> --------------------------------------------------------------
>
>          Key: AXIS-1554
>          URL: http://issues.apache.org/jira/browse/AXIS-1554
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: current (nightly)
>  Environment: JDK 1.4.X
>     Reporter: Andrei Iltchenko
>     Priority: Blocker
>  Attachments: 27372.txt
>
> WSDL2Java's bean and fault writers are oblivious to the fact that java.lang.Throwable and org.apache.axis.AxisFault, which always serve as base classes for service specific exception classes that it generates, have a certain set of properties. So that when we are dealing with a fault part that refers to a complex type like the one defined below:
> <complexType name="MyException">
>   <sequence>
>     <element name="cause" type="xsd:string" /> 
>     <element name="message" type="xsd:int" /> 
>   </sequence>
> </complexType>
> WSDL2Java gemerates Java code that violates the semantic rules of Java:
> MyException.java [36:1] getCause() in 
> mypackage.myexception cannot override getCause() in 
> java.rmi.RemoteException; attempting to use incompatible return type
> found   : java.lang.String
> required: java.lang.Throwable
>     public java.lang.String getCause() {
>                             ^

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira