axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From axis-...@ws.apache.org
Subject [jira] Commented: (AXIS-1554) attempting to use incompatible return type - method getCause()
Date Tue, 14 Sep 2004 10:51:38 GMT
The following comment has been added to this issue:

     Author: Andrei Iltchenko
    Created: Tue, 14 Sep 2004 3:50 AM
       Body:
<i>Note</i>: this bug is a JIRA version of Bugzilla Bug 27372 -- <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27372>.
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1554?page=comments#action_53081

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1554

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
 Components: 
             WSDL processing
   Versions:
             current (nightly)

   Assignee: 
   Reporter: Andrei Iltchenko

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

Description:
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() {
                            ^



---------------------------------------------------------------------
JIRA INFORMATION:
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


Mime
View raw message