axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [jira] Updated: (AXIS-1554) attempting to use incompatible return type - method getCause()
Date Tue, 14 Sep 2004 10:53:37 GMT
The following issue has been updated:

    Updater: Andrei Iltchenko (
       Date: Tue, 14 Sep 2004 3:51 AM
Please find attached the patch for the problem.
             Attachment changed to 27372.txt
For a full history of the issue, see:

View the issue:

Here is an overview of the issue:
        Key: AXIS-1554
    Summary: attempting to use incompatible return type - method getCause()
       Type: Bug

     Status: Unassigned
   Priority: Blocker

    Project: Axis
             WSDL processing
             current (nightly)

   Reporter: Andrei Iltchenko

    Created: Tue, 14 Sep 2004 3:49 AM
    Updated: Tue, 14 Sep 2004 3:51 AM
Environment: JDK 1.4.X

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">
    <element name="cause" type="xsd:string" /> 
    <element name="message" type="xsd:int" /> 

WSDL2Java gemerates Java code that violates the semantic rules of 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:

If you want more information on JIRA, or have a bug to report see:

View raw message